Class PanelHandlerBase<T extends ElementBase>

java.lang.Object
org.rusherhack.client.api.ui.ElementHandlerBase<T>
org.rusherhack.client.api.ui.panel.PanelHandlerBase<T>
All Implemented Interfaces:
Globals, IRenderable2D, org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IDraggable, org.rusherhack.core.interfaces.IHoverable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.ITypeable, org.rusherhack.core.serialize.ISerializable<com.google.gson.JsonElement>, org.rusherhack.core.serialize.JsonSerializable

public abstract class PanelHandlerBase<T extends ElementBase> extends ElementHandlerBase<T>
  • Field Details

  • Constructor Details

    • PanelHandlerBase

      public PanelHandlerBase(boolean scaledWithMinecraftGui)
  • Method Details

    • createPanel

      public abstract T createPanel(String name)
      Instantiates a panel with the given name
      Parameters:
      name - The name of the panel
      Returns:
      The panel
    • addPanel

      public void addPanel(T panel)
      Adds a panel to the list of panels
      Parameters:
      panel -
    • moveElementToTop

      public void moveElementToTop(T element)
      Description copied from class: ElementHandlerBase
      Moves the element to the top
      Specified by:
      moveElementToTop in class ElementHandlerBase<T extends ElementBase>
      Parameters:
      element - element to move to the top
    • getElements

      public List<T> getElements()
      Specified by:
      getElements in class ElementHandlerBase<T extends ElementBase>
      Returns:
      elements to be handled by this handler
    • getFontRenderer

      public IFontRenderer getFontRenderer()