Class ActionBar.Slot

    • Method Detail

      • getActionBar

        public int getActionBar()
        Deprecated.
      • getIndex

        public int getIndex()
        Deprecated.
      • getId

        public int getId()
        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.
      • toString

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

        public boolean isVisible()
        Deprecated.
        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()
        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 interface Interactable
      • 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 interface Interactable
      • 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 interface Interactable
        Returns:
      • click

        public boolean click()
        Deprecated.
        Description copied from interface: Interactable
        Clicks this entity in an interactable point
        Specified by:
        click in interface Interactable
        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 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
      • render

        public void render​(java.awt.Graphics2D g2d)
        Deprecated.
        Description copied from interface: Renderable
        Renders this entity onto the given Graphics2D, use is discouraged
        Specified by:
        render in interface Renderable
      • render

        public void render​(javafx.scene.canvas.GraphicsContext gc)
        Deprecated.
        Description copied from interface: Renderable
        Renders this entity onto the given GraphicsContext
        Specified by:
        render in interface Renderable