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) |
getReflectedObject
getClass, notify, notifyAll, toString, wait, wait, wait
distanceTo, within, withinRange
public SimpleSceneObject(ClientContext ctx, T reflectedObject, SimpleObjectType type, long hash, ObjectDefinition definition, WorldPoint location)
ctx
- reflectedObject
- public int getId()
SimpleIdentifiable
getId
in interface SimpleIdentifiable
public java.lang.String getName()
SimpleNamable
getName
in interface SimpleNamable
public java.lang.String[] getActions()
SimpleActionable
getActions
in interface SimpleActionable
public WorldPoint getLocation()
SimpleLocatable
getLocation
in interface SimpleLocatable
public 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 SimpleInteractable
public boolean interact(SimpleObjectActions action)
public boolean interact(int actionId)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object