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
FieldsFields inherited from class org.rusherhack.client.api.ui.ElementHandlerBase
positionsInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a panel to the list of panelsabstract TcreatePanel(String name) Instantiates a panel with the given namevoidmoveElementToTop(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, tickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.IDraggable
isDraggingMethods inherited from interface org.rusherhack.client.api.render.IRenderable2D
getRenderer, renderMethods 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:ElementHandlerBaseMoves the element to the top- Specified by:
moveElementToTopin classElementHandlerBase<T extends ElementBase>- Parameters:
element- element to move to the top
-
getElements
- Specified by:
getElementsin classElementHandlerBase<T extends ElementBase>- Returns:
- elements to be handled by this handler
-
getFontRenderer
-