public static void preInit()
{
for (final ItemLootBag item : ItemLootBag.getLootBags())
{
// IDK which one is effective, or which one is recommended. So I'm using them all.
// The modeling system is confusing...
ModelLoader.registerItemVariants(item, new ModelResourceLocation(item.texture), new ModelResourceLocation(item.texture, "inventory"));
ModelLoader.setCustomMeshDefinition(item, new ItemMeshDefinition() {
@Override
public ModelResourceLocation getModelLocation(ItemStack stack)
{
return new ModelResourceLocation(item.texture);
}
});
ModelLoader.registerItemVariants(item, new ModelResourceLocation(item.texture));
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.texture));
}
}
ClientHelper.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:JsonLootBags
作者:
评论列表
文章目录