public class SafeTimeTracker
extends java.lang.Object
| Constructor and Description |
|---|
SafeTimeTracker()
Deprecated.
should use constructors with parameters instead
|
SafeTimeTracker(long delay) |
SafeTimeTracker(long delay,
long random)
In many situations, it is a bad idea to have all objects of the same
kind to be waiting for the exact same amount of time, as that can lead
to some situation where they're all synchronized and got to work all
at the same time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
durationOfLastDelay() |
void |
markTime(net.minecraft.world.World world) |
boolean |
markTimeIfDelay(net.minecraft.world.World world) |
boolean |
markTimeIfDelay(net.minecraft.world.World world,
long delay)
Deprecated.
should use the constructor with a delay instead, and call
this function without a parameter
|
public SafeTimeTracker()
public SafeTimeTracker(long delay)
public SafeTimeTracker(long delay,
long random)
public boolean markTimeIfDelay(net.minecraft.world.World world)
public boolean markTimeIfDelay(net.minecraft.world.World world,
long delay)
public long durationOfLastDelay()
public void markTime(net.minecraft.world.World world)