Interface Item

    • Method Detail

      • getBounds

        java.util.Optional<java.awt.Rectangle> getBounds()
        Gets the bounds of the area
        Returns:
        the bounds of the area
      • getName

        default java.lang.String getName()
        Gets the name of the Item.
        Specified by:
        getName in interface Named
        Returns:
        The name of the entity
      • lookupPrice

        default java.util.Optional<java.lang.Integer> lookupPrice()
        Looks up the price of the given itemId. Works on noted items.
        Returns:
        The price of the item. If the item is not found or cannot be looked up, empty Optional.
      • getActions

        default java.util.List<java.lang.String> getActions()
        Gets the available actions for the entity, usually dependent on their definition. Note this will attempt to provide the actions for the specific item type. For example, if this is an equipment item it will provide the equipment actions. To always get the general actions see {@link this#getDefinition()}.
        Specified by:
        getActions in interface Actionable
        See Also:
        ItemDefinition.getActions()
      • isHovering

        default boolean isHovering()
        Description copied from interface: Clickable
        Checks if the mouse is currently over this entity
        Specified by:
        isHovering in interface Clickable
        Returns:
        true if the mouse if over this entity, false otherwise