public class TPlayer extends TElement implements ObjectContainer
| Constructor and Description |
|---|
TPlayer(java.lang.String identity)
Creates an empty player.
|
TPlayer(java.lang.String identity,
TPlayer parent)
Creates an empty player.
|
| Modifier and Type | Method and Description |
|---|---|
static TPlayer |
create(java.io.InputStream in)
Creates this object from an input stream, expecting its byte representation.
|
TPlayer |
getParent()
Gets this object's parent.
|
boolean |
isValidEntryType(BlockEntryType type)
Checks if this element handles a particular entry type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitaddBlock, addFunction, equals, equals, fromBytes, getBlock, getBlockEntries, getFunction, getFunctionEntries, getIdentity, hashCode, isArchetype, readBytes, resolveBlock, resolveFunction, setArchetype, setIdentity, setIdentityForced, setParent, toBytes, toString, writeBytespublic TPlayer(java.lang.String identity)
identity - its main identity.public TPlayer(java.lang.String identity,
TPlayer parent)
identity - its main identity.parent - the player's parent object.public final boolean isValidEntryType(BlockEntryType type)
TElementisValidEntryType in class TElementtype - the entry type to check.public static TPlayer create(java.io.InputStream in) throws java.io.IOException
in - the input stream to read from.java.io.IOException - if a read error occurs.public TPlayer getParent()
TElementgetParent in class TElementTElement.setParent(TElement)