public class Entity extends AbstractNBTItem
Modifier | Constructor and Description |
---|---|
protected |
Entity(org.jnbt.CompoundTag tag,
double[] relPos) |
|
Entity(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
Entity |
clone() |
static Entity |
fromNBT(org.jnbt.CompoundTag entityTag) |
static Entity |
fromNBT(org.jnbt.CompoundTag entityTag,
double[] relPos) |
java.lang.String |
getId() |
double[] |
getPos()
Get the absolute position of this entity in the world.
|
double[] |
getRelPos()
Get the position of this entity relative to the origin of the custom object in which it is contained.
|
float[] |
getRot() |
java.util.UUID |
getUUID() |
double[] |
getVel() |
Entity |
mirror(boolean mirrorYAxis)
Return a clone of this entity that has been mirrored in the indicated axis.
|
Entity |
rotate(int steps)
Return a clone of this entity that has been rotated clockwise by
steps times 90 degrees. |
void |
setPos(double[] pos) |
void |
setRelPos(double[] relPos) |
void |
setRot(float[] rot) |
void |
setUUID(java.util.UUID uuid) |
void |
setVel(double[] vel) |
containsTag, containsTag, containsType, forEachTag, getAllTags, getAllTags, getBoolean, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getByte, getByteArray, getByteArray, getDouble, getDouble, getDouble, getDouble, getDoubleList, getDoubleList, getFloat, getFloat, getFloat, getFloat, getFloatList, getFloatList, getInt, getInt, getInt, getInt, getIntArray, getIntArray, getList, getList, getLong, getLong, getLong, getLong, getLongArray, getLongArray, getMap, getMap, getShort, getShort, getShort, getShort, getString, getString, getString, getString, getTag, getTag, removeTag, removeTag, setBoolean, setBoolean, setByte, setByte, setByteArray, setByteArray, setDouble, setDouble, setDoubleList, setDoubleList, setFloat, setFloat, setFloatList, setFloatList, setInt, setInt, setIntArray, setIntArray, setList, setList, setLong, setLong, setLongArray, setLongArray, setMap, setMap, setShort, setShort, setString, setString, setTag, setTag, toMultipleNBT, toNBT, toString
public Entity(java.lang.String id)
protected Entity(org.jnbt.CompoundTag tag, double[] relPos)
public final java.lang.String getId()
public final double[] getRelPos()
public final void setRelPos(double[] relPos)
public final double[] getPos()
public final void setPos(double[] pos)
public final float[] getRot()
public final void setRot(float[] rot)
public final double[] getVel()
public final void setVel(double[] vel)
public final java.util.UUID getUUID()
public final void setUUID(java.util.UUID uuid)
public Entity rotate(int steps)
steps
times 90 degrees.public Entity mirror(boolean mirrorYAxis)
public Entity clone()
clone
in class AbstractNBTItem
public static Entity fromNBT(org.jnbt.CompoundTag entityTag)
public static Entity fromNBT(org.jnbt.CompoundTag entityTag, double[] relPos)