Package net.minecraft.world.item
Class ItemCooldowns
java.lang.Object
net.minecraft.world.item.ItemCooldowns
- Direct Known Subclasses:
ServerItemCooldowns
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map
<Item, ItemCooldowns.CooldownInstance> private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCooldown
(Item p_41525_, int p_41526_) float
getCooldownPercent
(Item p_41522_, float p_41523_) boolean
isOnCooldown
(Item p_41520_) protected void
onCooldownEnded
(Item p_41531_) protected void
onCooldownStarted
(Item p_41529_, int p_41530_) void
removeCooldown
(Item p_41528_) void
tick()
-
Field Details
-
cooldowns
-
tickCount
private int tickCount
-
-
Constructor Details
-
ItemCooldowns
public ItemCooldowns()
-
-
Method Details
-
isOnCooldown
-
getCooldownPercent
-
tick
public void tick() -
addCooldown
-
removeCooldown
-
onCooldownStarted
-
onCooldownEnded
-