public class Entity extends ComponentProvider<ComponentMap> implements UniqueIdentifiable, Identifiable, Stateful
ComponentProvider.ComponentAdded, ComponentProvider.ComponentRemovedStateful.LoadEvent, Stateful.UnloadEventcomponents, events| Constructor and Description |
|---|
Entity() |
| Modifier and Type | Method and Description |
|---|---|
EntityFactory |
getFactory() |
java.lang.String |
getID()
Get the ID to identify this object by
|
java.lang.String |
getUniqueID()
Get the unique ID to identify this object.
|
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
pivot() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
position() |
org.apache.commons.math3.geometry.euclidean.threed.Rotation |
rotation() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
scale() |
void |
setPivot(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pivot) |
void |
setPosition(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos) |
void |
setRotation(org.apache.commons.math3.geometry.euclidean.threed.Rotation rotation) |
void |
setScale(org.apache.commons.math3.geometry.euclidean.threed.Vector3D scale) |
void |
setWorld(World world) |
EntityTransform |
transform() |
World |
world() |
double |
x() |
double |
y() |
double |
z() |
components, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsameTypepublic final EntityTransform transform()
public final World world()
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D position()
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D scale()
public final org.apache.commons.math3.geometry.euclidean.threed.Vector3D pivot()
public final org.apache.commons.math3.geometry.euclidean.threed.Rotation rotation()
public final double x()
public final double y()
public final double z()
public void setWorld(World world)
public void setPosition(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pos)
public void setScale(org.apache.commons.math3.geometry.euclidean.threed.Vector3D scale)
public void setPivot(org.apache.commons.math3.geometry.euclidean.threed.Vector3D pivot)
public void setRotation(org.apache.commons.math3.geometry.euclidean.threed.Rotation rotation)
public final EntityFactory getFactory()
public final java.lang.String getID()
IdentifiablegetID in interface IdentifiablegetID in interface UniqueIdentifiablepublic java.lang.String getUniqueID()
UniqueIdentifiablegetUniqueID in interface UniqueIdentifiable