Class GUIBackdrop

All Implemented Interfaces:
Component, TextGUIElement

public class GUIBackdrop extends EmptySpace
Special component that is by default displayed as the background of a text gui unless you override it with something else. Themes can control how this backdrop is drawn, the normal is one solid color.
  • Constructor Details

    • GUIBackdrop

      public GUIBackdrop()
  • Method Details

    • createDefaultRenderer

      protected ComponentRenderer<EmptySpace> createDefaultRenderer()
      Description copied from class: AbstractComponent
      When you create a custom component, you need to implement this method and return a Renderer which is responsible for taking care of sizing the component, rendering it and choosing where to place the cursor (if Interactable). This value is intended to be overridden by custom themes.
      Overrides:
      createDefaultRenderer in class EmptySpace
      Returns:
      Renderer to use when sizing and drawing this component