public class GetPosition extends ProtocolZero
Modifier and Type | Field and Description |
---|---|
static int |
CLIENTPOSITIONS |
static int |
ENTITYPOSITIONS |
static int |
X |
static int |
Y |
static int |
Z |
formatted, paramscan, priority
Constructor and Description |
---|
GetPosition(int entityid) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityType()
Returns the first entity in the list's type.
|
java.lang.Double[] |
getLocation()
Returns the first entity in the list's location.
|
java.lang.Double[] |
getLocation(int entityid) |
java.lang.String |
getType(int entityid) |
void |
setData(java.lang.String params)
Sets command response data.
|
protected void |
setOp() |
getPriority, hasTerminated, pause, resume, run, setExecutor, terminate, update
addTerminationListener, compareTo, getDelay, getExitCode, getFrequency, getID, getOp, getPeriod, getRuntime, toDataString, toString, verifyClient, waitForTerminate, whatAmI
public static final int CLIENTPOSITIONS
public static final int ENTITYPOSITIONS
public static final int X
public static final int Y
public static final int Z
public java.lang.Double[] getLocation()
public java.lang.String getEntityType()
public java.lang.String getType(int entityid)
public java.lang.Double[] getLocation(int entityid)
public void setData(java.lang.String params)
ProtocolZero
setData
in class ProtocolZero
params
- Data string. For all "data" messages it is identified by the form:
protected void setOp()
setOp
in class ProtocolZero