Package net.minecraft.world
Class TickRateManager
java.lang.Object
net.minecraft.world.TickRateManager
- Direct Known Subclasses:
ServerTickRateManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected boolean
static final float
protected long
protected boolean
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
isEntityFrozen
(Entity p_308960_) boolean
isFrozen()
boolean
float
long
boolean
void
setFrozen
(boolean p_308905_) void
setFrozenTicksToRun
(int p_309193_) void
setTickRate
(float p_308963_) void
tick()
float
tickrate()
-
Field Details
-
MIN_TICKRATE
public static final float MIN_TICKRATE- See Also:
-
tickrate
protected float tickrate -
nanosecondsPerTick
protected long nanosecondsPerTick -
frozenTicksToRun
protected int frozenTicksToRun -
runGameElements
protected boolean runGameElements -
isFrozen
protected boolean isFrozen
-
-
Constructor Details
-
TickRateManager
public TickRateManager()
-
-
Method Details
-
setTickRate
public void setTickRate(float p_308963_) -
tickrate
public float tickrate() -
millisecondsPerTick
public float millisecondsPerTick() -
nanosecondsPerTick
public long nanosecondsPerTick() -
runsNormally
public boolean runsNormally() -
isSteppingForward
public boolean isSteppingForward() -
setFrozenTicksToRun
public void setFrozenTicksToRun(int p_309193_) -
frozenTicksToRun
public int frozenTicksToRun() -
setFrozen
public void setFrozen(boolean p_308905_) -
isFrozen
public boolean isFrozen() -
tick
public void tick() -
isEntityFrozen
-