Class Chatbox.Message

    • Constructor Detail

      • Message

        public Message​(int type,
                       java.lang.String author,
                       java.lang.String message,
                       long cycle)
      • Message

        public Message​(com.runemate.client.game.open.OpenChatboxMessage rmi)
    • Method Detail

      • compareTo

        public int compareTo​(@NonNull
                             @NonNull Chatbox.Message m)
        Specified by:
        compareTo in interface java.lang.Comparable<Chatbox.Message>
      • 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()
      • toJsonObject

        public org.json.JSONObject toJsonObject()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isVisible

        public boolean isVisible()
        Description copied from interface: Interactable
        Whether the entity is visible
        Specified by:
        isVisible in interface Interactable
        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 interface Interactable
      • 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 interface Interactable
        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 interface Interactable
      • 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 interface Interactable
        Returns:
      • click

        public boolean click()
        Description copied from interface: Interactable
        Clicks this entity in an interactable point
        Specified by:
        click in interface Interactable
        Returns:
        true if successfully clicked
      • hover

        public boolean hover()
        Description copied from interface: Interactable
        Moves the mouse over this entity
        Specified by:
        hover in interface Interactable
        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 interface Interactable
        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 interface Interactable
        Parameters:
        action - The pattern to match the action with, if null it's ignored
        target - 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 interface Interactable
      • interact

        public boolean interact​(@Nullable
                                java.util.regex.Pattern action)
        Specified by:
        interact in interface Interactable
      • interact

        public boolean interact​(@Nullable
                                java.lang.String action,
                                @Nullable
                                java.util.regex.Pattern target)
        Specified by:
        interact in interface Interactable
      • interact

        public boolean interact​(@Nullable
                                java.util.regex.Pattern action,
                                @Nullable
                                java.lang.String target)
        Specified by:
        interact in interface Interactable
      • interact

        public boolean interact​(@Nullable
                                java.lang.String action,
                                @Nullable
                                java.lang.String target)
        Specified by:
        interact in interface Interactable