public abstract class SerializedEntityBase extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
handle
The handle of this entity.
|
protected SerializedEntityPool |
pool
The pool this entity is registered at.
|
Modifier | Constructor and Description |
---|---|
protected |
SerializedEntityBase(SerializedEntityPool pool)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getHandle()
Returns the handle for this entity.
|
void |
serialize(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the entity on an output stream.
|
protected abstract void |
serializeContent(java.io.DataOutputStream dos,
SerializedEntitySerializer serializer)
Serializes the content of the entity (no reference) on an output stream.
|
protected final int handle
protected final SerializedEntityPool pool
protected SerializedEntityBase(SerializedEntityPool pool)
public int getHandle()
public void serialize(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
java.io.IOException
protected abstract void serializeContent(java.io.DataOutputStream dos, SerializedEntitySerializer serializer) throws java.io.IOException
java.io.IOException