Update for 1.0.0

This commit is contained in:
Erik Broes
2011-11-20 00:01:14 -08:00
committed by Erik Broes
parent 589f66bd1b
commit 345ea36c7b
153 changed files with 6128 additions and 4617 deletions

View File

@@ -7,13 +7,21 @@ public class EntityZombie extends EntityMonster {
public EntityZombie(World world) {
super(world);
this.texture = "/mob/zombie.png";
this.aU = 0.5F;
this.damage = 5;
this.aY = 0.5F;
this.damage = 4;
}
public void s() {
if (this.world.d() && !this.world.isStatic) {
float f = this.a_(1.0F);
public int getMaxHealth() {
return 20;
}
protected int O() {
return 2;
}
public void d() {
if (this.world.e() && !this.world.isStatic) {
float f = this.a(1.0F);
if (f > 0.5F && this.world.isChunkLoaded(MathHelper.floor(this.locX), MathHelper.floor(this.locY), MathHelper.floor(this.locZ)) && this.random.nextFloat() * 30.0F < (f - 0.4F) * 2.0F) {
// CraftBukkit start
@@ -21,28 +29,32 @@ public class EntityZombie extends EntityMonster {
this.world.getServer().getPluginManager().callEvent(event);
if (!event.isCancelled()) {
this.fireTicks = 300;
this.j(8);
}
// CraftBukkit end
}
}
super.s();
super.d();
}
protected String h() {
protected String c_() {
return "mob.zombie";
}
protected String i() {
protected String m() {
return "mob.zombiehurt";
}
protected String j() {
protected String n() {
return "mob.zombiedeath";
}
protected int k() {
protected int e() {
return Item.ROTTEN_FLESH.id;
}
public EnchantmentDamage t() {
return EnchantmentDamage.b;
}
}