@SubscribeEvent
public static void registerModels(ModelRegistryEvent event){
StateMapperBase mapper=new StateMapperBase() {
@Override
protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
return new ModelResourceLocation(new ResourceLocation(Constants.MODID, "creosote"), "creosote");
}
};
if(FluidsRegistry.BlockCreosote!=null)
ModelLoader.setCustomStateMapper(FluidsRegistry.BlockCreosote, mapper);
}
BlocksRegistry.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:CharcoalPit
作者:
评论列表
文章目录