Class InterfaceContainer
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.interfaces.InterfaceContainer
-
- All Implemented Interfaces:
Renderable
,Validatable
- Direct Known Subclasses:
OSRSInterfaceContainer
public abstract class InterfaceContainer extends java.lang.Object implements Validatable, Renderable
-
-
Constructor Summary
Constructors Constructor Description InterfaceContainer(long uid, int index)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract InterfaceComponent
getComponent(int index)
InterfaceComponentQueryResults
getComponents()
abstract InterfaceComponentQueryResults
getComponents(java.util.function.Predicate<InterfaceComponent> predicate)
int
getIndex()
boolean
isValid()
Verifies whether this entity is valid and still exists, typically on the world-graphvoid
render(java.awt.Graphics2D g2d)
Renders this entity onto the givenGraphics2D
, use is discouragedvoid
render(javafx.scene.canvas.GraphicsContext gc)
Renders this entity onto the givenGraphicsContext
java.lang.String
toString()
-
-
-
Method Detail
-
getComponents
public final InterfaceComponentQueryResults getComponents()
-
getComponents
public abstract InterfaceComponentQueryResults getComponents(java.util.function.Predicate<InterfaceComponent> predicate)
-
getIndex
public final int getIndex()
-
isValid
public final boolean isValid()
Description copied from interface:Validatable
Verifies whether this entity is valid and still exists, typically on the world-graph- Specified by:
isValid
in interfaceValidatable
- Returns:
- true if it's still available, otherwise false
-
render
public void render(java.awt.Graphics2D g2d)
Description copied from interface:Renderable
Renders this entity onto the givenGraphics2D
, use is discouraged- Specified by:
render
in interfaceRenderable
-
render
public void render(javafx.scene.canvas.GraphicsContext gc)
Description copied from interface:Renderable
Renders this entity onto the givenGraphicsContext
- Specified by:
render
in interfaceRenderable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getComponent
public abstract InterfaceComponent getComponent(int index)
-
-