public class SafeTimeTracker
extends java.lang.Object
Constructor and Description |
---|
SafeTimeTracker()
Only use this if the delay time changes (say, if you use this to determine when a refining should be complete
|
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)
Return true if the internal delay has passed since last time marked was called successfully.
|
boolean |
markTimeIfDelay(net.minecraft.world.World world,
long delay)
Return true if a given delay has passed since last time marked was called successfully.
|
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)