Class AbstractEntity<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Context ctx  
      protected T raw  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      boolean isNull()
      True when the game entity is null and false otherwise.
      T raw()
      Returns the wrapped (raw) RuneLite API object for this interactable game entity.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • raw

        protected final T raw
    • Constructor Detail

      • AbstractEntity

        public AbstractEntity​(Context ctx,
                              T raw)
    • Method Detail

      • raw

        public T raw()
        Description copied from interface: Interactable
        Returns the wrapped (raw) RuneLite API object for this interactable game entity. This is useful to provide easy access to familiar and underlying RuneLite game data. For example: an EquipmentEntity will expose the RuneLite Widget object for the interactable piece of equipment.
        Specified by:
        raw in interface Interactable<T>
        Returns:
        T wrapped RuneLite API object.
      • isNull

        public boolean isNull()
        Description copied from interface: Interactable
        True when the game entity is null and false otherwise. This may happen when a game entity you expected to be present is no longer available i.e. The nearest Oak tree was just chopped down by another player and is now null.
        Specified by:
        isNull in interface Interactable<T>
        Returns:
        True when the game entity is null and false otherwise.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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