public int getRenderColor(IBlockState state) { if (state.getBlock() != this) { return super.getRenderColor(state); } else { BlockPlanks.EnumType var2 = (BlockPlanks.EnumType) state.getValue(VARIANT_PROP); return var2 == BlockPlanks.EnumType.SPRUCE ? ColorizerFoliage.getFoliageColorPine() : (var2 == BlockPlanks.EnumType.BIRCH ? ColorizerFoliage.getFoliageColorBirch() : super.getRenderColor(state)); } }
public int colorMultiplier(IBlockAccess worldIn, BlockPos pos, int renderPass) { IBlockState var4 = worldIn.getBlockState(pos); if (var4.getBlock() == this) { BlockPlanks.EnumType var5 = (BlockPlanks.EnumType) var4.getValue(VARIANT_PROP); if (var5 == BlockPlanks.EnumType.SPRUCE) { return ColorizerFoliage.getFoliageColorPine(); } if (var5 == BlockPlanks.EnumType.BIRCH) { return ColorizerFoliage.getFoliageColorBirch(); } } return super.colorMultiplier(worldIn, pos, renderPass); }