Package net.minecraft.entity.player
Class ItemCooldownManager
java.lang.Object
net.minecraft.entity.player.ItemCooldownManager
- Direct Known Subclasses:
ServerItemCooldownManager
public class ItemCooldownManager extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ItemCooldownManager.Entry
-
Field Summary
Fields Modifier and Type Field Description private Map<Item,ItemCooldownManager.Entry>
entries
private int
tick
-
Constructor Summary
Constructors Constructor Description ItemCooldownManager()
-
Method Summary
Modifier and Type Method Description float
getCooldownProgress(Item item, float partialTicks)
boolean
isCoolingDown(Item item)
protected void
onCooldownUpdate(Item item)
protected void
onCooldownUpdate(Item item, int duration)
void
remove(Item item)
void
set(Item item, int duration)
void
update()
-
Field Details
-
entries
-
tick
private int tick
-
-
Constructor Details
-
ItemCooldownManager
public ItemCooldownManager()
-
-
Method Details
-
isCoolingDown
-
getCooldownProgress
-
update
public void update() -
set
-
remove
-
onCooldownUpdate
-
onCooldownUpdate
-