本文整理汇总了Java中org.spongepowered.api.entity.living.Ageable类的典型用法代码示例。如果您正苦于以下问题:Java Ageable类的具体用法?Java Ageable怎么用?Java Ageable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Ageable类属于org.spongepowered.api.entity.living包,在下文中一共展示了Ageable类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: applyEntity
import org.spongepowered.api.entity.living.Ageable; //导入依赖的package包/类
@Override
public void applyEntity(Ageable entity, Boolean input)
{
// TODO how is this set?
if (input)
{
entity.offer(Keys.AGE, 0);
}
else
{
entity.offer(Keys.AGE, 1);
}
}
示例2: of
import org.spongepowered.api.entity.living.Ageable; //导入依赖的package包/类
public static PoreAgeable of(Ageable handle) {
return WrapperConverter.of(PoreAgeable.class, handle);
}
示例3: PoreAgeable
import org.spongepowered.api.entity.living.Ageable; //导入依赖的package包/类
protected PoreAgeable(Ageable handle) {
super(handle);
}
示例4: getHandle
import org.spongepowered.api.entity.living.Ageable; //导入依赖的package包/类
@Override
public Ageable getHandle() {
return (Ageable) super.getHandle();
}