public class SimpleSceneObject<T> extends SimpleWrapper<T> implements SimpleLocatable, SimpleIdentifiable, SimpleInteractable, SimpleActionable, SimpleNamable
ctx| Constructor and Description |
|---|
SimpleSceneObject(ClientContext ctx,
T reflectedObject,
SimpleObjectType type,
long hash,
ObjectDefinition definition,
WorldPoint location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String[] |
getActions()
Returns Actions of the object
|
ObjectDefinition |
getDefinitions() |
long |
getHash() |
int |
getId()
Returns id of the object
|
int |
getLocalRegionX() |
int |
getLocalRegionY() |
WorldPoint |
getLocation()
Position in world of object
|
java.lang.String |
getName()
The name of said object
|
SimpleObjectType |
getType() |
int |
hashCode() |
boolean |
interact(int actionId) |
boolean |
interact(SimpleObjectActions action) |
boolean |
interact(java.lang.String option) |
getReflectedObjectgetClass, notify, notifyAll, toString, wait, wait, waitdistanceTo, within, withinRangepublic SimpleSceneObject(ClientContext ctx, T reflectedObject, SimpleObjectType type, long hash, ObjectDefinition definition, WorldPoint location)
ctx - reflectedObject - public int getId()
SimpleIdentifiablegetId in interface SimpleIdentifiablepublic java.lang.String getName()
SimpleNamablegetName in interface SimpleNamablepublic java.lang.String[] getActions()
SimpleActionablegetActions in interface SimpleActionablepublic WorldPoint getLocation()
SimpleLocatablegetLocation in interface SimpleLocatablepublic ObjectDefinition getDefinitions()
public SimpleObjectType getType()
public long getHash()
public final int getLocalRegionX()
public final int getLocalRegionY()
public boolean interact(java.lang.String option)
interact in interface SimpleInteractablepublic boolean interact(SimpleObjectActions action)
public boolean interact(int actionId)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object