public abstract class LegacyObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
id
The ID of this object.
|
protected int |
x
The X coordinate.
|
protected int |
y
The Y coordinate.
|
Constructor and Description |
---|
LegacyObject() |
Modifier and Type | Method and Description |
---|---|
int |
getID()
Get the ID of this object.
|
int |
getX()
Get the X coordinate.
|
int |
getY()
Get the Y coordinate.
|
abstract void |
read(java.io.InputStream in)
Read the data for this object.
|
protected int id
protected int x
protected int y
public abstract void read(java.io.InputStream in) throws java.io.IOException
in
- The InputStream to read.java.io.IOException
- If there is a problem reading the stream.public int getID()
public int getX()
public int getY()