Class ActionBar.Slot
- java.lang.Object
-
- com.runemate.game.api.rs3.local.hud.eoc.ActionBar.Slot
-
- All Implemented Interfaces:
Interactable
,Renderable
- Enclosing class:
- ActionBar
@Deprecated public static class ActionBar.Slot extends java.lang.Object implements Interactable, Renderable
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActionBar.Slot.ContentType
Deprecated.
-
Constructor Summary
Constructors Constructor Description Slot(int bar, int index, int id, ActionBar.Slot.ContentType type)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
activate()
Deprecated.Activates the action/item in the given spot by either clicking or using the hotkey (decided by player sense)boolean
activate(boolean click)
Deprecated.Activates the action/item in the given spot by either clicking or using the hotkey (specified)boolean
canAutomaticallyActivate()
Deprecated.boolean
click()
Deprecated.Clicks this entity in an interactable pointboolean
contains(java.awt.Point point)
Deprecated.Checks if the projected bounds of this entity contains the Point provided.int
getActionBar()
Deprecated.java.util.List<java.lang.String>
getActions()
Deprecated.InteractableRectangle
getBounds()
Deprecated.InterfaceComponent
getComponent()
Deprecated.int
getId()
Deprecated.int
getIndex()
Deprecated.@Nullable InteractablePoint
getInteractionPoint(java.awt.Point origin)
Deprecated.Gets a point within the entity that can be interacted with.ItemDefinition
getItemDefinition()
Deprecated.java.lang.String
getKeyBind()
Deprecated.java.lang.String
getName()
Deprecated.ActionBar.Slot.ContentType
getType()
Deprecated.double
getVisibility()
Deprecated.Returns a rough estimate of how visible this entity is as a percent (0 to 100)boolean
hasDynamicBounds()
Deprecated.boolean
interact(java.util.regex.Pattern action, java.util.regex.Pattern target)
Deprecated.Attempts to match action and target using Matcher.find() and then interacts with the appropriate menu itemboolean
isActivatable()
Deprecated.boolean
isCoolingDown()
Deprecated.boolean
isEmpty()
Deprecated.boolean
isReady()
Deprecated.Checks if the slot is both activatable and not cooling downboolean
isSelected()
Deprecated.boolean
isVisible()
Deprecated.Whether the entity is visiblevoid
render(java.awt.Graphics2D g2d)
Deprecated.Renders this entity onto the givenGraphics2D
, use is discouragedvoid
render(javafx.scene.canvas.GraphicsContext gc)
Deprecated.Renders this entity onto the givenGraphicsContext
java.lang.String
toString()
Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.runemate.game.api.hybrid.entities.details.Interactable
getInteractionPoint, hover, interact, interact, interact, interact, interact, isHovered
-
-
-
-
Constructor Detail
-
Slot
public Slot(int bar, int index, int id, ActionBar.Slot.ContentType type)
Deprecated.
-
-
Method Detail
-
getActionBar
public int getActionBar()
Deprecated.
-
getIndex
public int getIndex()
Deprecated.
-
getId
public int getId()
Deprecated.
-
getType
public ActionBar.Slot.ContentType getType()
Deprecated.
-
getName
public java.lang.String getName()
Deprecated.
-
getActions
public java.util.List<java.lang.String> getActions()
Deprecated.
-
isEmpty
public boolean isEmpty()
Deprecated.
-
getKeyBind
public java.lang.String getKeyBind()
Deprecated.
-
getItemDefinition
public ItemDefinition getItemDefinition()
Deprecated.
-
isSelected
public boolean isSelected()
Deprecated.
-
isReady
public boolean isReady()
Deprecated.Checks if the slot is both activatable and not cooling down
-
isActivatable
public boolean isActivatable()
Deprecated.
-
isCoolingDown
public boolean isCoolingDown()
Deprecated.
-
activate
public boolean activate()
Deprecated.Activates the action/item in the given spot by either clicking or using the hotkey (decided by player sense)- Returns:
- true if successfully activated.
-
activate
public boolean activate(boolean click)
Deprecated.Activates the action/item in the given spot by either clicking or using the hotkey (specified)- Parameters:
click
- whether to click or use the hotkey- Returns:
- true if successfully activated.
-
canAutomaticallyActivate
public boolean canAutomaticallyActivate()
Deprecated.
-
getBounds
public InteractableRectangle getBounds()
Deprecated.
-
getComponent
@Deprecated public InterfaceComponent getComponent()
Deprecated.
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
isVisible
public boolean isVisible()
Deprecated.Description copied from interface:Interactable
Whether the entity is visible- Specified by:
isVisible
in interfaceInteractable
- Returns:
- true if visible, and false if not visible
-
getVisibility
public double getVisibility()
Deprecated.Description copied from interface:Interactable
Returns a rough estimate of how visible this entity is as a percent (0 to 100)- Specified by:
getVisibility
in interfaceInteractable
-
hasDynamicBounds
public boolean hasDynamicBounds()
Deprecated.- Specified by:
hasDynamicBounds
in interfaceInteractable
-
getInteractionPoint
@Nullable public @Nullable InteractablePoint getInteractionPoint(java.awt.Point origin)
Deprecated.Description copied from interface:Interactable
Gets a point within the entity that can be interacted with. Takes into account the direction of movement from the origin point.- Specified by:
getInteractionPoint
in interfaceInteractable
-
contains
public boolean contains(java.awt.Point point)
Deprecated.Description copied from interface:Interactable
Checks if the projected bounds of this entity contains the Point provided.- Specified by:
contains
in interfaceInteractable
- Returns:
-
click
public boolean click()
Deprecated.Description copied from interface:Interactable
Clicks this entity in an interactable point- Specified by:
click
in interfaceInteractable
- Returns:
- true if successfully clicked
-
interact
public boolean interact(java.util.regex.Pattern action, java.util.regex.Pattern target)
Deprecated.Description copied from interface:Interactable
Attempts to match action and target using Matcher.find() and then interacts with the appropriate menu item- Specified by:
interact
in interfaceInteractable
- Parameters:
action
- The pattern to match the action with, if null it's ignoredtarget
- The pattern to match the target with, if null it's ignored
-
render
public void render(java.awt.Graphics2D g2d)
Deprecated.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)
Deprecated.Description copied from interface:Renderable
Renders this entity onto the givenGraphicsContext
- Specified by:
render
in interfaceRenderable
-
-