public void eatGrassBonus() { // CraftBukkit start SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity()); this.worldObj.getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { this.setSheared(false); } // CraftBukkit end if (this.isChild()) { this.addGrowth(60); } }
public void aK() { // CraftBukkit start SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity()); this.world.getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { this.setSheared(false); } // CraftBukkit end if (this.isBaby()) { int i = this.getAge() + 1200; if (i > 0) { i = 0; } this.setAge(i); } }
public void p() { // CraftBukkit start SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity()); this.world.getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { this.setSheared(false); } // CraftBukkit end if (this.isBaby()) { this.a(60); } }
public void n() { // CraftBukkit start SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity()); this.world.getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { this.setSheared(false); } // CraftBukkit end if (this.isBaby()) { this.a(60); } }
public void B() { // CraftBukkit start SheepRegrowWoolEvent event = new SheepRegrowWoolEvent((org.bukkit.entity.Sheep) this.getBukkitEntity()); this.world.getServer().getPluginManager().callEvent(event); if (event.isCancelled()) return; // CraftBukkit end this.setSheared(false); if (this.isBaby()) { this.setAge(60); } }