public class ObjectState
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
int |
networkId |
static long |
NO_PARENT
For a field like 'parent', null indicates that there is no change in state.
|
java.lang.Long |
parentId |
long |
positionBits |
java.lang.Long |
realId |
long |
rotationBits |
int |
zoneId |
Constructor and Description |
---|
ObjectState() |
ObjectState(int networkId) |
ObjectState(int networkId,
java.lang.Long realId) |
Modifier and Type | Method and Description |
---|---|
void |
applyDelta(ObjectState delta) |
ObjectState |
clone() |
ObjectState |
getDelta(ObjectState baseline) |
boolean |
isMarkedRemoved()
Returns true if this object is marked for removal at this
state.
|
void |
markRemoved() |
void |
set(ObjectState state) |
java.lang.String |
toString() |
public static long NO_PARENT
public int networkId
public int zoneId
public java.lang.Long realId
public java.lang.Long parentId
public long positionBits
public long rotationBits
public ObjectState()
public ObjectState(int networkId)
public ObjectState(int networkId, java.lang.Long realId)
public ObjectState clone()
clone
in class java.lang.Object
public void set(ObjectState state)
public boolean isMarkedRemoved()
public void markRemoved()
public ObjectState getDelta(ObjectState baseline)
public void applyDelta(ObjectState delta)
public java.lang.String toString()
toString
in class java.lang.Object