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
Component s that implement the specified the class or
interface |
<T extends Component> |
removeAllComponentsOfType(Class<T> clazz)
Removes all
Component s 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)
Component
s 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)
Component
s that implement a specific typeclazz
- The Class
to search forvoid addEntityListener(EntityListener listener)
EntityListener
to this Entity
listener
- The EntityListener
to addvoid removeEntityListener(EntityListener listener)
EntityListener
from this Entity
listener
- The EntityListener
to be removedCopyright © 2014. All rights reserved.