@SideOnly(Side.CLIENT)
public void initBlockColors() {
Minecraft.getMinecraft().getBlockColors().registerBlockColorHandler(new IBlockColor() {
@Override
public int colorMultiplier(IBlockState state, IBlockAccess worldIn, BlockPos pos, int tintIndex) {
if (pos != null && worldIn != null) {
TileEntity te = worldIn.getTileEntity(pos);
if (te instanceof LightTE) {
LightTE tileEntity = (LightTE) te;
return 0xff0000;
// return tileEntity.getShieldColor();
}
}
return 0xffffff;
}
}, this);
}
LightBlock.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:rflux
作者:
评论列表
文章目录