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) classItemCooldownManager.Entry -
Field Summary
Fields Modifier and Type Field Description private Map<Item,ItemCooldownManager.Entry>entriesprivate inttick -
Constructor Summary
Constructors Constructor Description ItemCooldownManager() -
Method Summary
Modifier and Type Method Description floatgetCooldownProgress(Item item, float partialTicks)booleanisCoolingDown(Item item)protected voidonCooldownUpdate(Item item)protected voidonCooldownUpdate(Item item, int duration)voidremove(Item item)voidset(Item item, int duration)voidupdate()
-
Field Details
-
entries
-
tick
private int tick
-
-
Constructor Details
-
ItemCooldownManager
public ItemCooldownManager()
-
-
Method Details
-
isCoolingDown
-
getCooldownProgress
-
update
public void update() -
set
-
remove
-
onCooldownUpdate
-
onCooldownUpdate
-