Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import org.bukkit.event.entity.EntityCombustEvent;
4
5public class EntityZombie extends EntityMonster {
6
7 public EntityZombie(World world) {
8 super(world);
9 this.texture = "/mob/zombie.png";
10 this.aE = 0.5F;
11 this.damage = 5;
12 }
13
14 public void v() {
15 if (this.world.d()) {
16 float f = this.c(1.0F);
17
18 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) {
19 // CraftBukkit start
20 EntityCombustEvent event = new EntityCombustEvent(this.getBukkitEntity());
21 this.world.getServer().getPluginManager().callEvent(event);
22
23 if (!event.isCancelled()) {
24 this.fireTicks = 300;
25 }
26 // CraftBukkit end
27 }
28 }
29
30 super.v();
31 }
32
33 protected String g() {
34 return "mob.zombie";
35 }
36
37 protected String h() {
38 return "mob.zombiehurt";
39 }
40
41 protected String i() {
42 return "mob.zombiedeath";
43 }
44
45 protected int j() {
46 return Item.FEATHER.id;
47 }
48}