@Override public int getLightValue( IBlockAccess world, int x, int y, int z) // may need to call lighting updates on generate { int color = this.getColorType(world, x, y, z).getColor(); int l = this.isActivated(world, x, y, z) ? 12 : 6; return ModList.COLORLIGHT.isLoaded() ? ReikaColorAPI.getPackedIntForColoredLight(color, l) : l; }
@Override public int getLightValue(IBlockAccess iba, int x, int y, int z) { LaserEffectTile te = (LaserEffectTile) iba.getTileEntity(x, y, z); return te instanceof TargetTile && ((TargetTile) te).isTriggered() ? (ModList.COLORLIGHT.isLoaded() ? ReikaColorAPI.getPackedIntForColoredLight(te.getRenderColor(), 15) : 15) : 2; }