Class GuiColourPicker.ColourPreview

All Implemented Interfaces:
BackgroundRender, ElementEvents, GuiParent<GuiColourPicker.ColourPreview>, TooltipHandler<GuiColourPicker.ColourPreview>
Enclosing class:
GuiColourPicker

public static class GuiColourPicker.ColourPreview extends GuiElement<GuiColourPicker.ColourPreview> implements BackgroundRender
  • Field Details

    • colourA

      public int colourA
    • colourB

      public int colourB
  • Constructor Details

  • Method Details

    • renderBackground

      public void renderBackground(GuiRender render, double mouseX, double mouseY, float partialTicks)
      Description copied from interface: BackgroundRender
      Used to render content behind this elements child elements. When rendering element content, always use the PoseStack available via the provided GuiRender Where applicable, always use push/pop to ensure the stack is returned to its original state after your rendering is complete.
      Specified by:
      renderBackground in interface BackgroundRender
      Parameters:
      render - Contains gui context information as well as essential render methods/utils including the PoseStack.