Class PanelBase<T extends IPanelItem>
java.lang.Object
org.rusherhack.client.api.ui.ElementBase
org.rusherhack.client.api.ui.ScaledElementBase
org.rusherhack.client.api.ui.panel.PanelBase<T>
- All Implemented Interfaces:
IRenderable2D,org.rusherhack.core.interfaces.IClickable,org.rusherhack.core.interfaces.IHideable,org.rusherhack.core.interfaces.IHoverable,org.rusherhack.core.interfaces.INamed,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 PanelBase<T extends IPanelItem>
extends ScaledElementBase
implements IRenderable2D, org.rusherhack.core.interfaces.ITickable, org.rusherhack.core.interfaces.IClickable, org.rusherhack.core.interfaces.IScrollable, org.rusherhack.core.interfaces.ITypeable, org.rusherhack.core.interfaces.IHideable, org.rusherhack.core.serialize.JsonSerializable, org.rusherhack.core.interfaces.INamed
Basic panel element that with items that can be clicked
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItem(org.rusherhack.core.feature.IFeature feature) abstract TcreateFeatureItem(org.rusherhack.core.feature.IFeature feature) Instantiates a new item for the given featurebooleandeserialize(com.google.gson.JsonElement obj) getName()booleanisHidden()com.google.gson.JsonElementvoidsetVisible(boolean visible) Methods inherited from class org.rusherhack.client.api.ui.ScaledElementBase
getScale, getScaledHeight, getScaledWidthMethods inherited from class org.rusherhack.client.api.ui.ElementBase
getHeight, getWidth, getX, getY, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.rusherhack.core.interfaces.IClickable
mouseClicked, mouseReleasedMethods inherited from interface org.rusherhack.core.interfaces.IHoverable
isHoveredMethods inherited from interface org.rusherhack.core.interfaces.INamed
getAliases, getDisplayNameMethods inherited from interface org.rusherhack.client.api.render.IRenderable2D
render, renderMethods inherited from interface org.rusherhack.core.interfaces.IScrollable
mouseScrolledMethods inherited from interface org.rusherhack.core.serialize.ISerializable
shouldAutoSave, shouldSerializeMethods inherited from interface org.rusherhack.core.interfaces.ITickable
tickMethods inherited from interface org.rusherhack.core.interfaces.ITypeable
charTyped, keyTyped
-
Field Details
-
items
Items that should be contained in this panel
-
-
Constructor Details
-
PanelBase
-
-
Method Details
-
createFeatureItem
Instantiates a new item for the given feature- Parameters:
feature- likely a module or hud element- Returns:
- the item
-
addItem
-
addItem
-
getItemList
-
getName
- Specified by:
getNamein interfaceorg.rusherhack.core.interfaces.INamed
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceorg.rusherhack.core.interfaces.IHideable
-
setVisible
public void setVisible(boolean visible) -
getRenderer
- Specified by:
getRendererin interfaceIRenderable2D
-
getFontRenderer
- Specified by:
getFontRendererin interfaceIRenderable2D
-
serialize
public com.google.gson.JsonElement serialize()- Specified by:
serializein interfaceorg.rusherhack.core.serialize.ISerializable<T extends IPanelItem>
-
deserialize
public boolean deserialize(com.google.gson.JsonElement obj) - Specified by:
deserializein interfaceorg.rusherhack.core.serialize.ISerializable<T extends IPanelItem>
-