Klasse UpdateEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.general.UpdateEvent
Called every tick.
Attention: This is a high frequency event! Be careful when doing extensive computations in this event or calling blocking methods, since that may have a big impact on Performance
Attention: This is a high frequency event! Be careful when doing extensive computations in this event or calling blocking methods, since that may have a big impact on Performance
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfloat
getTpf()
Gets the time-per-frame, i.e the amount of seconds between the last call and this call.
-
Konstruktordetails
-
UpdateEvent
public UpdateEvent(float tpf)
-
-
Methodendetails
-
getTpf
public float getTpf()Gets the time-per-frame, i.e the amount of seconds between the last call and this call. You can use this variable to calculate the passed time, for example (e.g increment a value- Gibt zurück:
- the time-per-frame (in seconds).
- Example: Use tpf as a counter variable
-