Package net.minecraft.entity.player
Class ItemCooldownManager
java.lang.Object
net.minecraft.entity.player.ItemCooldownManager
- Direct Known Subclasses:
ServerItemCooldownManager
public class ItemCooldownManager extends Object
- Mappings:
Namespace Name official bns
intermediary net/minecraft/class_1796
named net/minecraft/entity/player/ItemCooldownManager
-
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
- Mappings:
Namespace Name Mixin selector official a
Lbns;a:Ljava/util/Map;
intermediary field_8024
Lnet/minecraft/class_1796;field_8024:Ljava/util/Map;
named entries
Lnet/minecraft/entity/player/ItemCooldownManager;entries:Ljava/util/Map;
-
tick
private int tick- Mappings:
Namespace Name Mixin selector official b
Lbns;b:I
intermediary field_8025
Lnet/minecraft/class_1796;field_8025:I
named tick
Lnet/minecraft/entity/player/ItemCooldownManager;tick:I
-
-
Constructor Details
-
ItemCooldownManager
public ItemCooldownManager()
-
-
Method Details
-
isCoolingDown
- Mappings:
Namespace Name Mixin selector official a
Lbns;a(Lbnr;)Z
intermediary method_7904
Lnet/minecraft/class_1796;method_7904(Lnet/minecraft/class_1792;)Z
named isCoolingDown
Lnet/minecraft/entity/player/ItemCooldownManager;isCoolingDown(Lnet/minecraft/item/Item;)Z
-
getCooldownProgress
- Mappings:
Namespace Name Mixin selector official a
Lbns;a(Lbnr;F)F
intermediary method_7905
Lnet/minecraft/class_1796;method_7905(Lnet/minecraft/class_1792;F)F
named getCooldownProgress
Lnet/minecraft/entity/player/ItemCooldownManager;getCooldownProgress(Lnet/minecraft/item/Item;F)F
-
update
public void update()- Mappings:
Namespace Name Mixin selector official a
Lbns;a()V
intermediary method_7903
Lnet/minecraft/class_1796;method_7903()V
named update
Lnet/minecraft/entity/player/ItemCooldownManager;update()V
-
set
- Mappings:
Namespace Name Mixin selector official a
Lbns;a(Lbnr;I)V
intermediary method_7906
Lnet/minecraft/class_1796;method_7906(Lnet/minecraft/class_1792;I)V
named set
Lnet/minecraft/entity/player/ItemCooldownManager;set(Lnet/minecraft/item/Item;I)V
-
remove
- Mappings:
Namespace Name Mixin selector official b
Lbns;b(Lbnr;)V
intermediary method_7900
Lnet/minecraft/class_1796;method_7900(Lnet/minecraft/class_1792;)V
named remove
Lnet/minecraft/entity/player/ItemCooldownManager;remove(Lnet/minecraft/item/Item;)V
-
onCooldownUpdate
- Mappings:
Namespace Name Mixin selector official b
Lbns;b(Lbnr;I)V
intermediary method_7902
Lnet/minecraft/class_1796;method_7902(Lnet/minecraft/class_1792;I)V
named onCooldownUpdate
Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/item/Item;I)V
-
onCooldownUpdate
- Mappings:
Namespace Name Mixin selector official c
Lbns;c(Lbnr;)V
intermediary method_7901
Lnet/minecraft/class_1796;method_7901(Lnet/minecraft/class_1792;)V
named onCooldownUpdate
Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/item/Item;)V
-