From 2f30d6cdfab56cd5051bac6ddd64997baba53507 Mon Sep 17 00:00:00 2001 From: Technus Date: Sat, 21 Jan 2017 14:22:10 +0100 Subject: [PATCH] add color modulation --- src/main/java/gregtech/common/blocks/GT_Block_Casings6.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java index 68c1936b..03c77d25 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings6.java @@ -8,6 +8,7 @@ import gregtech.api.objects.GT_CopiedBlockTexture; import gregtech.api.util.GT_LanguageManager; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; +import net.minecraft.world.IBlockAccess; public class GT_Block_Casings6 extends GT_Block_Casings_Abstract { @@ -92,4 +93,8 @@ public class GT_Block_Casings6 return Textures.BlockIcons.MACHINE_CASING_TANK_0.getIcon(); } } + + public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) { + return gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[0] << 16 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[1] << 8 | gregtech.api.enums.Dyes.MACHINE_METAL.mRGBa[2]; + } }