public interface Control
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPaused() |
void |
onAdded(Entity entity)
Called when this control is added to entity.
|
void |
onRemoved(Entity entity)
Called when this control is removed from entity.
|
void |
onUpdate(Entity entity,
double tpf)
Called on entity world update tick.
|
void |
pause()
Pauses execution of this control.
|
void |
resume()
Resumes execution of this control.
|
void onAdded(Entity entity)
entity - the entity to which this control was addedvoid onUpdate(Entity entity, double tpf)
entity - the entity to which this control is attachedtpf - time per framevoid onRemoved(Entity entity)
entity - the entity from which the control was removedboolean isPaused()
void pause()
void resume()
Copyright © 2017. All rights reserved.