net.minecraft.client.renderer.color.ItemColors Java Examples
The following examples show how to use
net.minecraft.client.renderer.color.ItemColors.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ClientProxy.java From enderutilities with GNU Lesser General Public License v3.0 | 7 votes |
@SubscribeEvent public void registerItemColorHandlers(ColorHandlerEvent.Item event) { ItemColors colors = event.getItemColors(); if (EnderUtilitiesBlocks.ELEVATOR.isEnabled()) { colors.registerItemColorHandler(new ItemColorHandlerDyes(1, 0xFFFFFF), Item.getItemFromBlock(EnderUtilitiesBlocks.ELEVATOR)); } if (EnderUtilitiesBlocks.ELEVATOR_SLAB.isEnabled()) { colors.registerItemColorHandler(new ItemColorHandlerDyes(1, 0xFFFFFF), Item.getItemFromBlock(EnderUtilitiesBlocks.ELEVATOR_SLAB)); } if (EnderUtilitiesBlocks.ELEVATOR_LAYER.isEnabled()) { colors.registerItemColorHandler(new ItemColorHandlerDyes(1, 0xFFFFFF), Item.getItemFromBlock(EnderUtilitiesBlocks.ELEVATOR_LAYER)); } }
Example #2
Source File: GTProxyClient.java From GT-Classic with GNU Lesser General Public License v3.0 | 5 votes |
public static void registerTintedItems() { GTColorItem colors = new GTColorItem(); ItemColors registry = Minecraft.getMinecraft().getItemColors(); for (Item item : Item.REGISTRY) { if (item instanceof IGTColorItem) { registry.registerItemColorHandler(colors, item); } } }
Example #3
Source File: CCRenderItem.java From CodeChickenLib with GNU Lesser General Public License v2.1 | 4 votes |
public CCRenderItem(TextureManager textureManagerIn, ModelManager modelManagerIn, ItemColors itemColorsIn) { super(textureManagerIn, modelManagerIn, itemColorsIn); }