public class ExpireCleanControl extends AbstractControl
| Constructor and Description |
|---|
ExpireCleanControl(javafx.util.Duration expire)
The expire duration timer starts when the entity is attached to the world,
so it does not start immediately when this control is created.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onAdded(Entity entity)
Called when this control is added to entity.
|
void |
onUpdate(Entity entity,
double tpf)
Called on entity world update tick.
|
public ExpireCleanControl(javafx.util.Duration expire)
expire - the duration after entity is removed from the worldpublic void onAdded(Entity entity)
ControlonAdded in interface ControlonAdded in class AbstractControlentity - the entity to which this control was addedCopyright © 2017. All rights reserved.