本文整理汇总了Java中org.bukkit.entity.CreatureType.fromEntityType方法的典型用法代码示例。如果您正苦于以下问题:Java CreatureType.fromEntityType方法的具体用法?Java CreatureType.fromEntityType怎么用?Java CreatureType.fromEntityType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.bukkit.entity.CreatureType
的用法示例。
在下文中一共展示了CreatureType.fromEntityType方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getCreatureType
import org.bukkit.entity.CreatureType; //导入方法依赖的package包/类
@Override
public CreatureType getCreatureType() {
return CreatureType.fromEntityType(this.getEntityType());
}
示例2: getCreatureType
import org.bukkit.entity.CreatureType; //导入方法依赖的package包/类
/**
* Gets the type of creature being spawned.
*
* @return A CreatureType value detailing the type of creature being
* spawned
* @deprecated In favour of {@link #getEntityType()}.
*/
@Deprecated
public CreatureType getCreatureType() {
return CreatureType.fromEntityType(getEntityType());
}
示例3: getHatchType
import org.bukkit.entity.CreatureType; //导入方法依赖的package包/类
/**
* Get the type of the mob being hatched (EntityType.CHICKEN by default)
*
* @return The type of the mob being hatched by the egg
* @deprecated In favour of {@link #getHatchingType()}.
*/
@Deprecated
public CreatureType getHatchType() {
return CreatureType.fromEntityType(hatchType);
}
示例4: getCreatureType
import org.bukkit.entity.CreatureType; //导入方法依赖的package包/类
/**
* Gets the type of creature being spawned.
*
* @return A CreatureType value detailing the type of creature being spawned
* @deprecated In favour of {@link #getEntityType()}.
*/
@Deprecated
public CreatureType getCreatureType() {
return CreatureType.fromEntityType(getEntityType());
}