BlockDecoration.java 文件源码

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

项目:EnderIO 作者:
@Override
@SideOnly(Side.CLIENT)
public void registerRenderers(@Nonnull IModObject modObject) {
  Item item = Item.getItemFromBlock(this);
  Map<IBlockState, ModelResourceLocation> locations = new DefaultStateMapper().putStateModelLocations(this);
  NNIterator<EnumDecoBlock> iterator = NNList.of(EnumDecoBlock.class).iterator();
  while (iterator.hasNext()) {
    EnumDecoBlock type = iterator.next();
    IBlockState state = getDefaultState().withProperty(EnumDecoBlock.TYPE, type);
    ModelResourceLocation mrl = locations.get(state);
    ModelLoader.setCustomModelResourceLocation(item, EnumDecoBlock.getMetaFromType(type), mrl);
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号