本文整理汇总了Java中vazkii.botania.api.subtile.SubTileGenerating类的典型用法代码示例。如果您正苦于以下问题:Java SubTileGenerating类的具体用法?Java SubTileGenerating怎么用?Java SubTileGenerating使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SubTileGenerating类属于vazkii.botania.api.subtile包,在下文中一共展示了SubTileGenerating类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getType
import vazkii.botania.api.subtile.SubTileGenerating; //导入依赖的package包/类
public String getType() {
Class<? extends SubTileEntity> clazz = BotaniaAPI.getSubTileMapping(name);
if(clazz == null)
return "uwotm8";
if(clazz.getAnnotation(PassiveFlower.class) != null)
return "botania.flowerType.passiveGenerating";
if(SubTileGenerating.class.isAssignableFrom(clazz))
return "botania.flowerType.generating";
if(SubTileFunctional.class.isAssignableFrom(clazz))
return "botania.flowerType.functional";
return "botania.flowerType.misc";
}
示例2: getType
import vazkii.botania.api.subtile.SubTileGenerating; //导入依赖的package包/类
public String getType() {
Class<? extends SubTileEntity> clazz = BotaniaAPI.getSubTileMapping(name);
if(clazz == null)
return "uwotm8";
if(SubTileGenerating.class.isAssignableFrom(clazz))
return "botania.flowerType.generating";
if(SubTileFunctional.class.isAssignableFrom(clazz))
return "botania.flowerType.functional";
return "botania.flowerType.misc";
}