public final class EntityEdit extends Object
| Modifier and Type | Method and Description |
|---|---|
EntityEdit |
add(Component component)
Add a component to this entity.
|
EntityEdit |
add(Component component,
ComponentType type)
Faster adding of components into the entity.
|
<T extends Component> |
create(Class<T> componentKlazz) |
void |
deleteEntity() |
Entity |
getEntity() |
EntityEdit |
remove(Class<? extends Component> type)
Remove component by its type.
|
EntityEdit |
remove(Component component)
Removes the component from this entity.
|
EntityEdit |
remove(ComponentType type)
Faster removal of components from a entity.
|
String |
toString() |
public void deleteEntity()
public EntityEdit add(Component component)
component - the component to add to this entity#createComponent(Class)}public EntityEdit add(Component component, ComponentType type)
Not necessary to use this, but in some cases you might need the extra performance.
component - the component to addtype - the type of the component#createComponent(Class)public Entity getEntity()
public EntityEdit remove(Component component)
component - the component to remove from this entity.public EntityEdit remove(ComponentType type)
type - the type of component to remove from this entitypublic EntityEdit remove(Class<? extends Component> type)
type - the class type of component to remove from this entityCopyright © 2014. All Rights Reserved.