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
-
Field Summary
Fields inherited from class org.rusherhack.client.api.ui.ElementHandlerBase
positionsInitialized
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a panel to the list of panelsabstract T
createPanel
(String name) Instantiates a panel with the given namevoid
moveElementToTop
(T element) Moves the element to the topMethods inherited from class org.rusherhack.client.api.ui.ElementHandlerBase
charTyped, consumeElementCharTyped, consumeElementKeyTyped, consumeElementMouseClick, consumeElementMouseMove, consumeElementMouseRelease, consumeElementMouseScroll, consumeMouseClick, consumeMouseMove, consumeMouseRelease, consumeMouseScroll, deserialize, getElement, getScale, initialize, isElementHovered, isEnabled, isHovered, keyTyped, mouseClicked, mouseMoved, mouseReleased, mouseScrolled, render, renderElements, serialize, setDefaultPositions, shouldSerialize, tick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.rusherhack.core.interfaces.IDraggable
isDragging
Methods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getRenderer, render
Methods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave
-
Field Details
-
panels
List of panels
-
-
Constructor Details
-
PanelHandlerBase
public PanelHandlerBase(boolean scaledWithMinecraftGui)
-
-
Method Details
-
createPanel
Instantiates a panel with the given name- Parameters:
name
- The name of the panel- Returns:
- The panel
-
addPanel
Adds a panel to the list of panels- Parameters:
panel
-
-
moveElementToTop
Description copied from class:ElementHandlerBase
Moves the element to the top- Specified by:
moveElementToTop
in classElementHandlerBase<T extends ElementBase>
- Parameters:
element
- element to move to the top
-
getElements
- Specified by:
getElements
in classElementHandlerBase<T extends ElementBase>
- Returns:
- elements to be handled by this handler
-
getFontRenderer
-