Package com.kraken.api.core
Class AbstractEntity<T>
- java.lang.Object
-
- com.kraken.api.core.AbstractEntity<T>
-
- All Implemented Interfaces:
Interactable<T>
- Direct Known Subclasses:
BankEntity,BankInventoryEntity,EquipmentEntity,GameObjectEntity,GroundObjectEntity,InventoryEntity,NpcEntity,PlayerEntity,WidgetEntity,WorldEntity
public abstract class AbstractEntity<T> extends java.lang.Object implements Interactable<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractEntity(Context ctx, T raw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()booleanisNull()True when the game entity is null and false otherwise.Traw()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
-
Methods inherited from interface com.kraken.api.core.Interactable
getId, getName, interact
-
-
-
-
Method Detail
-
raw
public T raw()
Description copied from interface:InteractableReturns 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: anEquipmentEntitywill expose the RuneLiteWidgetobject for the interactable piece of equipment.- Specified by:
rawin interfaceInteractable<T>- Returns:
- T wrapped RuneLite API object.
-
isNull
public boolean isNull()
Description copied from interface:InteractableTrue 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:
isNullin interfaceInteractable<T>- Returns:
- True when the game entity is null and false otherwise.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-