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 Details

    • StackSizeDurabilityBar

      private StackSizeDurabilityBar()
  • Method Details

    • render

      public boolean render(Font font, ItemStack stack, int xOffset, int yOffset, float blitOffset)
      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 interface IItemDecorator
      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)