BlockPaintedWall.java 文件源码

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

项目:EnderIO 作者:
@SideOnly(Side.CLIENT)
private List<IBakedModel> mapRender(IBlockState state, @Nullable IBlockState paint) {
  List<IBakedModel> result = new ArrayList<IBakedModel>();

  if (state.getValue(UP)) {
    result.add(PaintRegistry.getModel(IBakedModel.class, "wall_post", paint, null));
  }
  if (state.getValue(NORTH)) {
    result.add(PaintRegistry.getModel(IBakedModel.class, "wall_side", paint, new UVLock(null)));
  }
  if (state.getValue(EAST)) {
    result.add(PaintRegistry.getModel(IBakedModel.class, "wall_side", paint, new UVLock(ModelRotation.X0_Y90)));
  }
  if (state.getValue(SOUTH)) {
    result.add(PaintRegistry.getModel(IBakedModel.class, "wall_side", paint, new UVLock(ModelRotation.X0_Y180)));
  }
  if (state.getValue(WEST)) {
    result.add(PaintRegistry.getModel(IBakedModel.class, "wall_side", paint, new UVLock(ModelRotation.X0_Y270)));
  }

  return result;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号