public interface Entity
Modifier and Type | Method and Description |
---|---|
void |
addEntityListener(EntityListener l)
Add an EntityListener.
|
Entity |
copy()
Create a copy of this entity.
|
EntityID |
getID()
Get the ID of this Entity.
|
java.util.Set<Property> |
getProperties()
Get all the properties that this entity has.
|
Property |
getProperty(java.lang.String urn)
Get a property by urn.
|
java.lang.String |
getURN()
Get the urn of this Entity.
|
void |
read(java.io.InputStream in)
Read this Entity from a stream.
|
void |
removeEntityListener(EntityListener l)
Remove an EntityListener.
|
void |
write(java.io.OutputStream out)
Write this Entity to a stream.
|
void addEntityListener(EntityListener l)
l
- The listener to add.void removeEntityListener(EntityListener l)
l
- The listener to remove.EntityID getID()
java.lang.String getURN()
java.util.Set<Property> getProperties()
Property getProperty(java.lang.String urn)
urn
- The urn to look up.void write(java.io.OutputStream out) throws java.io.IOException
out
- The stream to write to.java.io.IOException
- If the write fails.void read(java.io.InputStream in) throws java.io.IOException
in
- The stream to read from.java.io.IOException
- If the read fails.Entity copy()