BlocksRegistry.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:CharcoalPit 作者:
@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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号