public class EntityIDComponent extends AbstractMessageComponent
| Constructor and Description |
|---|
EntityIDComponent(java.lang.String name)
Construct an EntityIDComponent with no content.
|
EntityIDComponent(java.lang.String name,
EntityID value)
Construct an EntityIDComponent with a specific value.
|
| Modifier and Type | Method and Description |
|---|---|
EntityID |
getValue()
Get the value of this message component.
|
void |
read(java.io.InputStream in)
Read this component from a stream.
|
void |
setValue(EntityID id)
Set the value of this message component.
|
java.lang.String |
toString() |
void |
write(java.io.OutputStream out)
Write this component to a stream.
|
getNamepublic EntityIDComponent(java.lang.String name)
name - The name of the component.public EntityIDComponent(java.lang.String name,
EntityID value)
name - The name of the component.value - The value of this component.public EntityID getValue()
public void setValue(EntityID id)
id - The new value of the component.public void write(java.io.OutputStream out)
throws java.io.IOException
MessageComponentout - The stream to write to.java.io.IOException - If the write fails.public void read(java.io.InputStream in)
throws java.io.IOException
MessageComponentin - The stream to read from.java.io.IOException - If the read fails.public java.lang.String toString()
toString in class java.lang.Object