Package net.minecraft.util
Class ServerCooldownTracker
- java.lang.Object
-
- net.minecraft.util.CooldownTracker
-
- net.minecraft.util.ServerCooldownTracker
-
public class ServerCooldownTracker extends CooldownTracker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.util.CooldownTracker
CooldownTracker.Cooldown
-
-
Field Summary
Fields Modifier and Type Field Description private ServerPlayerEntity
player
-
Constructor Summary
Constructors Constructor Description ServerCooldownTracker(ServerPlayerEntity p_i46741_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onCooldownEnded(Item p_185146_1_)
protected void
onCooldownStarted(Item p_185140_1_, int p_185140_2_)
-
Methods inherited from class net.minecraft.util.CooldownTracker
addCooldown, getCooldownPercent, isOnCooldown, removeCooldown, tick
-
-
-
-
Field Detail
-
player
private final ServerPlayerEntity player
-
-
Constructor Detail
-
ServerCooldownTracker
public ServerCooldownTracker(ServerPlayerEntity p_i46741_1_)
-
-
Method Detail
-
onCooldownStarted
protected void onCooldownStarted(Item p_185140_1_, int p_185140_2_)
- Overrides:
onCooldownStarted
in classCooldownTracker
-
onCooldownEnded
protected void onCooldownEnded(Item p_185146_1_)
- Overrides:
onCooldownEnded
in classCooldownTracker
-
-