@Override
@SideOnly(Side.CLIENT)
public void registerRenderers(@Nonnull IModObject modObject) {
Item item = Item.getItemFromBlock(this);
Map<IBlockState, ModelResourceLocation> locations = new DefaultStateMapper().putStateModelLocations(this);
IBlockState state = getDefaultState().withProperty(IS_ON, true).withProperty(FACING, EnumFacing.UP);
ModelResourceLocation mrl = locations.get(state);
ModelLoader.setCustomModelResourceLocation(item, 0, mrl);
}
BlockDetector.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:EnderIO
作者:
评论列表
文章目录