|
@@ -6,7 +6,7 @@ import me.km.blocks.ModBlocks;
|
|
|
import me.km.blocks.cauldron.TileEntityCauldron;
|
|
|
import me.km.entities.ModEntities;
|
|
|
import me.km.items.ItemColoredSoup;
|
|
|
-import me.km.items.ItemJewel;
|
|
|
+import me.km.items.ItemGemStone;
|
|
|
import me.km.items.ModItems;
|
|
|
import me.km.items.ModelCylinder;
|
|
|
import me.km.items.ModelHat;
|
|
@@ -98,27 +98,20 @@ public class ClientProxy extends CommonProxy
|
|
|
return -16777216 | c.getRed() << 16 | c.getGreen() << 8 | c.getBlue();
|
|
|
}, ModBlocks.cauldronOak, ModBlocks.cauldronAcacia, ModBlocks.cauldronBigOak, ModBlocks.cauldronBirch, ModBlocks.cauldronJungle, ModBlocks.cauldronSpruce);
|
|
|
|
|
|
- bColors.registerBlockColorHandler((IBlockState state, IBlockAccess w, BlockPos pos, int ti) -> 0xFFD4F7, ModBlocks.redCrystalLeaves);
|
|
|
- bColors.registerBlockColorHandler((IBlockState state, IBlockAccess w, BlockPos pos, int ti) -> 0xD0FFFF, ModBlocks.blueCrystalLeaves);
|
|
|
- bColors.registerBlockColorHandler((IBlockState state, IBlockAccess w, BlockPos pos, int ti) -> 0xFFFFFF, ModBlocks.whiteCrystalLeaves);
|
|
|
-
|
|
|
bColors.registerBlockColorHandler((IBlockState state, IBlockAccess w, BlockPos pos, int ti) ->
|
|
|
w != null && pos != null ? BiomeColorHelper.getFoliageColorAtPos(w, pos) : ColorizerFoliage.getFoliageColorBasic(),
|
|
|
Blocks.LEAVES, ModBlocks.apricotLeaves, ModBlocks.pearLeaves, ModBlocks.plumLeaves);
|
|
|
|
|
|
ItemColors iColors = Minecraft.getMinecraft().getItemColors();
|
|
|
iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> tintIndex > 0 ? -1 : ((ItemColoredSoup) stack.getItem()).getColor(stack), ModItems.coloredSoup);
|
|
|
- iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> tintIndex > 0 ? -1 : ((ItemJewel) stack.getItem()).getColor(stack), ModItems.jewel);
|
|
|
+ iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> tintIndex > 0 ? -1 : ((ItemGemStone) stack.getItem()).getColor(stack),
|
|
|
+ ModItems.gemStone, ModItems.rawGemStone, ModItems.flawlessGemStone);
|
|
|
|
|
|
iColors.registerItemColorHandler((ItemStack stack, int tintIndex) ->
|
|
|
{
|
|
|
IBlockState iblockstate = ((ItemBlock) stack.getItem()).getBlock().getStateFromMeta(stack.getMetadata());
|
|
|
return bColors.colorMultiplier(iblockstate, null, null, tintIndex);
|
|
|
}, ModBlocks.apricotLeaves, ModBlocks.pearLeaves, ModBlocks.plumLeaves);
|
|
|
-
|
|
|
- iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> 0xFFD4F7, Item.getItemFromBlock(ModBlocks.redCrystalLeaves));
|
|
|
- iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> 0xD0FFFF, Item.getItemFromBlock(ModBlocks.blueCrystalLeaves));
|
|
|
- iColors.registerItemColorHandler((ItemStack stack, int tintIndex) -> 0xFFFFFF, Item.getItemFromBlock(ModBlocks.whiteCrystalLeaves));
|
|
|
}
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|