summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityPainting.java
diff options
context:
space:
mode:
authorDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 01:23:52 +0100
committerDinnerbone <dinnerbone@dinnerbone.com>2011-09-15 01:23:52 +0100
commit5b2c774edc069f70d1fa9940d96bb0b8705bef7a (patch)
tree79d1800e7154bba7b5fca4f8c8373ee4376cca89 /src/main/java/net/minecraft/server/EntityPainting.java
parent54bcd1c1f36691a714234e5ca2f30a20b3ad2816 (diff)
downloadcraftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar
craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.gz
craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.lz
craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.tar.xz
craftbukkit-5b2c774edc069f70d1fa9940d96bb0b8705bef7a.zip
Update for Minecraft 1.8
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityPainting.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityPainting.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPainting.java b/src/main/java/net/minecraft/server/EntityPainting.java
index 40d28bae..6271393b 100644
--- a/src/main/java/net/minecraft/server/EntityPainting.java
+++ b/src/main/java/net/minecraft/server/EntityPainting.java
@@ -39,7 +39,7 @@ public class EntityPainting extends Entity {
this.e = enumart;
this.b(l);
- if (this.h()) {
+ if (this.i()) {
arraylist.add(enumart);
}
}
@@ -117,10 +117,10 @@ public class EntityPainting extends Entity {
return i == 32 ? 0.5F : (i == 64 ? 0.5F : 0.0F);
}
- public void m_() {
+ public void s_() {
if (this.f++ == 100 && !this.world.isStatic) {
this.f = 0;
- if (!this.h()) {
+ if (!this.i()) {
// CraftBukkit start
PaintingBreakByWorldEvent event = new PaintingBreakByWorldEvent((org.bukkit.entity.Painting) this.getBukkitEntity());
this.world.getServer().getPluginManager().callEvent(event);
@@ -136,7 +136,7 @@ public class EntityPainting extends Entity {
}
}
- public boolean h() {
+ public boolean i() {
if (this.world.getEntities(this, this.boundingBox).size() > 0) {
return false;
} else {
@@ -194,14 +194,14 @@ public class EntityPainting extends Entity {
}
}
- public boolean l_() {
+ public boolean r_() {
return true;
}
- public boolean damageEntity(Entity entity, int i) {
+ public boolean damageEntity(DamageSource damagesource, int i) {
if (!this.dead && !this.world.isStatic) {
// CraftBukkit start
- PaintingBreakByEntityEvent event = new PaintingBreakByEntityEvent((org.bukkit.entity.Painting) this.getBukkitEntity(), entity == null ? null : entity.getBukkitEntity());
+ PaintingBreakByEntityEvent event = new PaintingBreakByEntityEvent((org.bukkit.entity.Painting) this.getBukkitEntity(), damagesource.a() == null ? null : damagesource.a().getBukkitEntity());
this.world.getServer().getPluginManager().callEvent(event);
if (event.isCancelled()) {
@@ -210,7 +210,7 @@ public class EntityPainting extends Entity {
// CraftBukkit end
this.die();
- this.af();
+ this.aq();
this.world.addEntity(new EntityItem(this.world, this.locX, this.locY, this.locZ, new ItemStack(Item.PAINTING)));
}
@@ -249,7 +249,7 @@ public class EntityPainting extends Entity {
this.b(this.a);
}
- public void a(double d0, double d1, double d2) {
+ public void a_(double d0, double d1, double d2) {
if (!this.world.isStatic && d0 * d0 + d1 * d1 + d2 * d2 > 0.0D) {
this.die();
this.world.addEntity(new EntityItem(this.world, this.locX, this.locY, this.locZ, new ItemStack(Item.PAINTING)));