@Override
@SideOnly(Side.CLIENT)
public void initModel() {
final ModelResourceLocation off = new ModelResourceLocation(getRegistryName(), "on=false");
ModelBakery.registerItemVariants(this, off);
final ModelResourceLocation on = new ModelResourceLocation(getRegistryName(), "on=true");
ModelBakery.registerItemVariants(this, on);
ModelLoader.setCustomMeshDefinition(this, new ItemMeshDefinition() {
@Override
public ModelResourceLocation getModelLocation(ItemStack stack) {
return ItemNBTHelper.getBoolean(stack, NBT_ON, false) ? on : off;
}
});
}
ItemSuperTorch.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:CrystalMod
作者:
评论列表
文章目录