Java 类org.bukkit.event.entity.SheepRegrowWoolEvent 实例源码

项目:Cauldron    文件:EntitySheep.java   
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);
    }
}
项目:Craft-city    文件:EntitySheep.java   
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);
    }
}
项目:CraftBukkit    文件:EntitySheep.java   
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);
    }
}
项目:Almura-Server    文件:EntitySheep.java   
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);
    }
}
项目:Tweakkit-Server    文件:EntitySheep.java   
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);
    }
}
项目:SpigotSource    文件:EntitySheep.java   
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);
    }

}