Class CustomItemDecorationsTest.StackSizeDurabilityBar
java.lang.Object
net.minecraftforge.debug.client.rendering.CustomItemDecorationsTest.StackSizeDurabilityBar
- All Implemented Interfaces:
IItemDecorator
- Enclosing class:
- CustomItemDecorationsTest
private static class CustomItemDecorationsTest.StackSizeDurabilityBar
extends Object
implements IItemDecorator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
render
(GuiGraphics graphics, Font font, ItemStack stack, int xOffset, int yOffset) Is called after GuiGraphics.renderItemDecorations(Font, ItemStack, int, int, String) is done rendering.
-
Constructor Details
-
StackSizeDurabilityBar
private StackSizeDurabilityBar()
-
-
Method Details
-
render
Description copied from interface:IItemDecorator
Is called after GuiGraphics.renderItemDecorations(Font, ItemStack, int, int, String) is done rendering. The StackCount is rendered at blitOffset+200 so use the blitOffset with caution.The RenderState during this call will be: enableTexture, enableDepthTest, enableBlend and defaultBlendFunc
- Specified by:
render
in interfaceIItemDecorator
- Returns:
- true if you have modified the RenderState and it has to be reset for other ItemDecorators
-