Class Chatbox.Message
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.interfaces.Chatbox.Message
-
- All Implemented Interfaces:
Interactable
,java.lang.Comparable<Chatbox.Message>
- Enclosing class:
- Chatbox
public static class Chatbox.Message extends java.lang.Object implements java.lang.Comparable<Chatbox.Message>, Interactable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Chatbox.Message.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
click()
Clicks this entity in an interactable pointint
compareTo(@NonNull Chatbox.Message m)
boolean
contains(java.awt.Point point)
Checks if the projected bounds of this entity contains the Point provided.boolean
equals(java.lang.Object object)
InterfaceComponent
getComponent()
InteractablePoint
getInteractionPoint()
Gets a point within the entity that can be interacted with.InteractablePoint
getInteractionPoint(java.awt.Point origin)
Gets a point within the entity that can be interacted with.java.lang.String
getMessage()
int
getOpcode()
java.lang.String
getSender()
Deprecated.java.lang.String
getSpeaker()
Chatbox.Message.Type
getType()
double
getVisibility()
Returns a rough estimate of how visible this entity is as a percent (0 to 100)boolean
hasDynamicBounds()
int
hashCode()
boolean
hover()
Moves the mouse over this entityboolean
interact(java.lang.String action)
boolean
interact(java.lang.String action, java.lang.String target)
boolean
interact(java.lang.String action, java.util.regex.Pattern target)
boolean
interact(java.util.regex.Pattern action)
boolean
interact(java.util.regex.Pattern action, java.lang.String target)
boolean
interact(java.util.regex.Pattern action, java.util.regex.Pattern target)
Attempts to match action and target using Matcher.find() and then interacts with the appropriate menu itemboolean
isHovered()
Gets whether or not this entity is being hovered.boolean
isJagexModerator()
boolean
isPlayerModerator()
boolean
isVisible()
Whether the entity is visibleorg.json.JSONObject
toJsonObject()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(@NonNull @NonNull Chatbox.Message m)
- Specified by:
compareTo
in interfacejava.lang.Comparable<Chatbox.Message>
-
getComponent
@Nullable public InterfaceComponent getComponent()
-
getMessage
public java.lang.String getMessage()
-
getOpcode
public int getOpcode()
-
getSender
@Deprecated public java.lang.String getSender()
Deprecated.
-
getSpeaker
public java.lang.String getSpeaker()
-
isPlayerModerator
public boolean isPlayerModerator()
-
isJagexModerator
public boolean isJagexModerator()
-
getType
public Chatbox.Message.Type getType()
-
toJsonObject
public org.json.JSONObject toJsonObject()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isVisible
public boolean isVisible()
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()
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()
- Specified by:
hasDynamicBounds
in interfaceInteractable
-
getInteractionPoint
@Nullable public InteractablePoint getInteractionPoint()
Description copied from interface:Interactable
Gets a point within the entity that can be interacted with. Assumes the origin is the current mouse position.- Specified by:
getInteractionPoint
in interfaceInteractable
- Returns:
- an InteractablePoint if available, otherwise null
-
getInteractionPoint
@Nullable public InteractablePoint getInteractionPoint(java.awt.Point origin)
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)
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()
Description copied from interface:Interactable
Clicks this entity in an interactable point- Specified by:
click
in interfaceInteractable
- Returns:
- true if successfully clicked
-
hover
public boolean hover()
Description copied from interface:Interactable
Moves the mouse over this entity- Specified by:
hover
in interfaceInteractable
- Returns:
- true if the mouse is hovering the entity
-
isHovered
public boolean isHovered()
Description copied from interface:Interactable
Gets whether or not this entity is being hovered.- Specified by:
isHovered
in interfaceInteractable
- Returns:
- true if the entity is currently being hovered, otherwise false.
-
interact
public boolean interact(@Nullable java.util.regex.Pattern action, @Nullable java.util.regex.Pattern target)
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
-
interact
public boolean interact(@Nullable java.lang.String action)
- Specified by:
interact
in interfaceInteractable
-
interact
public boolean interact(@Nullable java.util.regex.Pattern action)
- Specified by:
interact
in interfaceInteractable
-
interact
public boolean interact(@Nullable java.lang.String action, @Nullable java.util.regex.Pattern target)
- Specified by:
interact
in interfaceInteractable
-
interact
public boolean interact(@Nullable java.util.regex.Pattern action, @Nullable java.lang.String target)
- Specified by:
interact
in interfaceInteractable
-
interact
public boolean interact(@Nullable java.lang.String action, @Nullable java.lang.String target)
- Specified by:
interact
in interfaceInteractable
-
-