add color modulation

This commit is contained in:
Technus 2017-01-21 14:22:10 +01:00
parent bcab9e4d6d
commit 2f30d6cdfa

View file

@ -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];
}
}