Пример #1
0
 @Override
 public int getLightValue(IBlockAccess world, int x, int y, int z) {
   RgbLightTileEntity entity = (RgbLightTileEntity) (world.getTileEntity(x, y, z));
   return entity.getLightValue();
 }
Пример #2
0
 @Override
 public int colorMultiplier(IBlockAccess world, int x, int y, int z) {
   RgbLightTileEntity entity = (RgbLightTileEntity) (world.getTileEntity(x, y, z));
   return entity.getColorInt();
 }