diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2012-10-24 22:53:23 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-27 22:19:03 -0400 |
commit | 60819c6693daf19dde68b04af38a4fee8c7da988 (patch) | |
tree | e7bd96a07f0e9d9f1f6b2721ddd1bb5dd71eaf48 /src/main/java/net/minecraft/server/EntitySpider.java | |
parent | b9a72531b6e2ccc84bd021bca421255a957d96f7 (diff) | |
download | craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.gz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.lz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.tar.xz craftbukkit-60819c6693daf19dde68b04af38a4fee8c7da988.zip |
Update CraftBukkit to Minecraft 1.4(.2).
Diffstat (limited to 'src/main/java/net/minecraft/server/EntitySpider.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySpider.java | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySpider.java b/src/main/java/net/minecraft/server/EntitySpider.java index fa933849..6f2e1510 100644 --- a/src/main/java/net/minecraft/server/EntitySpider.java +++ b/src/main/java/net/minecraft/server/EntitySpider.java @@ -8,7 +8,7 @@ public class EntitySpider extends EntityMonster { super(world); this.texture = "/mob/spider.png"; this.a(1.4F, 0.9F); - this.bw = 0.8F; + this.bI = 0.8F; } protected void a() { @@ -16,10 +16,10 @@ public class EntitySpider extends EntityMonster { this.datawatcher.a(16, new Byte((byte) 0)); } - public void h_() { - super.h_(); + public void j_() { + super.j_(); if (!this.world.isStatic) { - this.e(this.positionChanged); + this.f(this.positionChanged); } } @@ -31,10 +31,6 @@ public class EntitySpider extends EntityMonster { return (double) this.length * 0.75D - 0.5D; } - protected boolean e_() { - return false; - } - protected Entity findTarget() { float f = this.c(1.0F); @@ -47,16 +43,20 @@ public class EntitySpider extends EntityMonster { } } - protected String aQ() { - return "mob.spider"; + protected String aW() { + return "mob.spider.say"; + } + + protected String aX() { + return "mob.spider.say"; } - protected String aR() { - return "mob.spider"; + protected String aY() { + return "mob.spider.death"; } - protected String aS() { - return "mob.spiderdeath"; + protected void a(int i, int j, int k, int l) { + this.world.makeSound(this, "mob.spider.step", 0.15F, 1.0F); } protected void a(Entity entity, float f) { @@ -119,11 +119,11 @@ public class EntitySpider extends EntityMonster { // CraftBukkit end } - public boolean f_() { - return this.p(); + public boolean g_() { + return this.o(); } - public void aj() {} + public void am() {} public EnumMonsterType getMonsterType() { return EnumMonsterType.ARTHROPOD; @@ -133,11 +133,11 @@ public class EntitySpider extends EntityMonster { return mobeffect.getEffectId() == MobEffectList.POISON.id ? false : super.e(mobeffect); } - public boolean p() { + public boolean o() { return (this.datawatcher.getByte(16) & 1) != 0; } - public void e(boolean flag) { + public void f(boolean flag) { byte b0 = this.datawatcher.getByte(16); if (flag) { @@ -148,4 +148,15 @@ public class EntitySpider extends EntityMonster { this.datawatcher.watch(16, Byte.valueOf(b0)); } + + public void bD() { + if (this.world.random.nextInt(100) == 0) { + EntitySkeleton entityskeleton = new EntitySkeleton(this.world); + + entityskeleton.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, 0.0F); + entityskeleton.bD(); + this.world.addEntity(entityskeleton); + entityskeleton.mount(this); + } + } } |