Class OSRSGroundItem

    • Constructor Detail

      • OSRSGroundItem

        public OSRSGroundItem​(long item_node_uid,
                              Coordinate position)
    • Method Detail

      • getQuantity

        public int getQuantity()
        Description copied from interface: Item
        The quantity of the item, also known as stack size
        Specified by:
        getQuantity in interface Item
      • interact

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

        public Model getModel()
        Description copied from interface: Modeled
        Gets the polygon-based model of the entity
        Specified by:
        getModel in interface Modeled
        Returns:
        the entities model, otherwise the backup if set, if neither are available null
      • getPosition

        public Coordinate getPosition​(Coordinate regionBase)
        Description copied from interface: LocatableEntity
        Gets the position using the region base as the coordinate to offset from. For optimization.
        Specified by:
        getPosition in interface LocatableEntity
        Parameters:
        regionBase - The Coordinate base of the loaded region
      • interact

        public boolean interact​(java.lang.String action)
        Specified by:
        interact in interface Interactable
      • isValid

        public boolean isValid()
        Description copied from interface: Validatable
        Verifies whether this entity is valid and still exists, typically on the world-graph
        Specified by:
        isValid in interface Validatable
        Overrides:
        isValid in class Entity
        Returns:
        true if it's still available, otherwise false
      • equals

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

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