public interface Entity
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(Component component)
|
void |
addEntityListener(EntityListener listener)
Adds an
EntityListener to this Entity |
<T> List<T> |
getComponents(Class<T> clazz)
Returns all
Components that implement the specified the class or
interface |
<T extends Component> |
removeAllComponentsOfType(Class<T> clazz)
Removes all
Components that implement a specific type |
void |
removeComponent(Component component)
|
void |
removeEntityListener(EntityListener listener)
Removes an
EntityListener from this Entity |
<T> List<T> getComponents(Class<T> clazz)
Components that implement the specified the class or
interfacevoid removeComponent(Component component)
component - The Component to remove<T extends Component> List<T> removeAllComponentsOfType(Class<T> clazz)
Components that implement a specific typeclazz - The Class to search forvoid addEntityListener(EntityListener listener)
EntityListener to this Entitylistener - The EntityListener to addvoid removeEntityListener(EntityListener listener)
EntityListener from this Entitylistener - The EntityListener to be removedCopyright © 2014. All rights reserved.