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
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
fillRect
(BufferBuilder pRenderer, int pX, int pY, float pZ, int pWidth, int pHeight, int pRed, int pGreen, int pBlue) boolean
Is called after ItemRenderer.renderGuiItemDecorations(Font, ItemStack, int, int, String) is done rendering.
-
Constructor Details
-
StackSizeDurabilityBar
private StackSizeDurabilityBar()
-
-
Method Details
-
render
Description copied from interface:IItemDecorator
Is called after ItemRenderer.renderGuiItemDecorations(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
-
fillRect
private static void fillRect(BufferBuilder pRenderer, int pX, int pY, float pZ, int pWidth, int pHeight, int pRed, int pGreen, int pBlue)
-