本文整理汇总了Java中org.bukkit.event.entity.SheepRegrowWoolEvent类的典型用法代码示例。如果您正苦于以下问题:Java SheepRegrowWoolEvent类的具体用法?Java SheepRegrowWoolEvent怎么用?Java SheepRegrowWoolEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SheepRegrowWoolEvent类属于org.bukkit.event.entity包,在下文中一共展示了SheepRegrowWoolEvent类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: eatGrassBonus
import org.bukkit.event.entity.SheepRegrowWoolEvent; //导入依赖的package包/类
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);
}
}
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:19,代码来源:EntitySheep.java
示例2: aK
import org.bukkit.event.entity.SheepRegrowWoolEvent; //导入依赖的package包/类
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);
}
}
开发者ID:didoupimpon,项目名称:Craft-city,代码行数:21,代码来源:EntitySheep.java
示例3: p
import org.bukkit.event.entity.SheepRegrowWoolEvent; //导入依赖的package包/类
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);
}
}
开发者ID:OvercastNetwork,项目名称:CraftBukkit,代码行数:15,代码来源:EntitySheep.java
示例4: n
import org.bukkit.event.entity.SheepRegrowWoolEvent; //导入依赖的package包/类
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);
}
}
开发者ID:AlmuraDev,项目名称:Almura-Server,代码行数:15,代码来源:EntitySheep.java
示例5: B
import org.bukkit.event.entity.SheepRegrowWoolEvent; //导入依赖的package包/类
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);
}
}
开发者ID:bergerkiller,项目名称:SpigotSource,代码行数:14,代码来源:EntitySheep.java
注:本文中的org.bukkit.event.entity.SheepRegrowWoolEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论