/** Make sure to set up the rendering info */
@SideOnly(Side.CLIENT)
public static void registerRendering() {
for(Fluid fluid : fluidBlocks.keySet()) {
BlockFluidBase block = fluidBlocks.get(fluid);
final ModelResourceLocation fluidModelLocation = new ModelResourceLocation(
RefStrings.MODID + ":" + fluidBlockNames.get(block), "fluid");
ModelLoader.setCustomStateMapper(block, new StateMapperBase() {
@Override
protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
return fluidModelLocation;
}
});
}
}
LCFluids.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:LightningCraft
作者:
评论列表
文章目录