public class ObjectStub extends Entity implements EntityWithWorldNode
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Behavior> |
behaviors |
protected boolean |
spawned |
log, staticLock, subObjectNamespacesInt, transientPropertyKeys, type
lock, name
Constructor and Description |
---|
ObjectStub() |
ObjectStub(OID objId,
InterpolatedWorldNode node,
int template) |
Modifier and Type | Method and Description |
---|---|
void |
addBehavior(Behavior behav) |
void |
despawn() |
java.util.List<Behavior> |
getBehaviors() |
Entity |
getEntity() |
OID |
getInstanceOid() |
int |
getTemplateID() |
InterpolatedWorldNode |
getWorldNode() |
void |
removeBehavior(Behavior behav) |
void |
setBehaviors(java.util.List<Behavior> behavs) |
void |
setDirLocOrient(BasicWorldNode bnode) |
void |
setTemplateID(int template) |
void |
setWorldNode(InterpolatedWorldNode node) |
void |
spawn() |
java.lang.String |
toString()
Returns the string describing this entity, useful for logging.
|
void |
unload() |
void |
updateWorldNode() |
addSubObjectNamespace, equals, equals, getLock, getNamespace, getOid, getPersistenceFlag, getProperty, getSubObjectNamespaces, getSubObjectNamespacesInt, getTransientDataRef, getType, hashCode, hasSubObjectNamespace, isDeleted, registerTransientPropertyKey, removeProperty, removeSubObjectNamespace, setDeleted, setNamespace, setOid, setPersistenceFlag, setProperty, setSubObjectNamespaces, setSubObjectNamespacesInt, setType, toBytes, unregisterTransientPropertyKey
getBooleanProperty, getIntProperty, getName, getPropertyMap, getPropertyMapRef, getStringProperty, lock, modifyIntProperty, setName, setPropertyMap, setupTransient, unlock
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, setOid
protected boolean spawned
protected java.util.List<Behavior> behaviors
public ObjectStub()
public ObjectStub(OID objId, InterpolatedWorldNode node, int template)
public java.lang.String toString()
Entity
public Entity getEntity()
getEntity
in interface EntityWithWorldNode
public OID getInstanceOid()
public InterpolatedWorldNode getWorldNode()
getWorldNode
in interface EntityWithWorldNode
public void setWorldNode(InterpolatedWorldNode node)
setWorldNode
in interface EntityWithWorldNode
public void setDirLocOrient(BasicWorldNode bnode)
setDirLocOrient
in interface EntityWithWorldNode
public int getTemplateID()
public void setTemplateID(int template)
public void updateWorldNode()
public void spawn()
public void despawn()
public void unload()
public void addBehavior(Behavior behav)
public void removeBehavior(Behavior behav)
public java.util.List<Behavior> getBehaviors()
public void setBehaviors(java.util.List<Behavior> behavs)