public class TRoom extends TElement implements ObjectContainer
Constructor and Description |
---|
TRoom(java.lang.String identity)
Creates an empty room.
|
TRoom(java.lang.String identity,
TRoom parent)
Creates an empty room.
|
Modifier and Type | Method and Description |
---|---|
static TRoom |
create(java.io.InputStream in)
Creates this object from an input stream, expecting its byte representation.
|
TRoom |
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, wait
addBlock, addFunction, equals, equals, fromBytes, getBlock, getBlockEntries, getFunction, getFunctionEntries, getIdentity, hashCode, isArchetype, readBytes, resolveBlock, resolveFunction, setArchetype, setIdentity, setIdentityForced, setParent, toBytes, toString, writeBytes
public TRoom(java.lang.String identity)
identity
- its main identity.public TRoom(java.lang.String identity, TRoom parent)
identity
- its main identity.parent
- the room's parent object.public final boolean isValidEntryType(BlockEntryType type)
TElement
isValidEntryType
in class TElement
type
- the entry type to check.public static TRoom 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 TRoom getParent()
TElement
getParent
in class TElement
TElement.setParent(TElement)