Class ItemCooldownManager

java.lang.Object
net.minecraft.entity.player.ItemCooldownManager
Direct Known Subclasses:
ServerItemCooldownManager

public class ItemCooldownManager extends Object
Mappings:
Namespace Name
named net/minecraft/entity/player/ItemCooldownManager
intermediary net/minecraft/class_1796
official cum
  • Field Details

    • entries

      private final Map<Item,ItemCooldownManager.Entry> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/entity/player/ItemCooldownManager;entries:Ljava/util/Map;
      intermediary field_8024 Lnet/minecraft/class_1796;field_8024:Ljava/util/Map;
      official a Lcum;a:Ljava/util/Map;
    • tick

      private int tick
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/player/ItemCooldownManager;tick:I
      intermediary field_8025 Lnet/minecraft/class_1796;field_8025:I
      official b Lcum;b:I
  • Constructor Details

    • ItemCooldownManager

      public ItemCooldownManager()
  • Method Details

    • isCoolingDown

      public boolean isCoolingDown(Item item)
      Mappings:
      Namespace Name Mixin selector
      named isCoolingDown Lnet/minecraft/entity/player/ItemCooldownManager;isCoolingDown(Lnet/minecraft/item/Item;)Z
      intermediary method_7904 Lnet/minecraft/class_1796;method_7904(Lnet/minecraft/class_1792;)Z
      official a Lcum;a(Lcul;)Z
    • getCooldownProgress

      public float getCooldownProgress(Item item, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getCooldownProgress Lnet/minecraft/entity/player/ItemCooldownManager;getCooldownProgress(Lnet/minecraft/item/Item;F)F
      intermediary method_7905 Lnet/minecraft/class_1796;method_7905(Lnet/minecraft/class_1792;F)F
      official a Lcum;a(Lcul;F)F
    • update

      public void update()
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/entity/player/ItemCooldownManager;update()V
      intermediary method_7903 Lnet/minecraft/class_1796;method_7903()V
      official a Lcum;a()V
    • set

      public void set(Item item, int duration)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/entity/player/ItemCooldownManager;set(Lnet/minecraft/item/Item;I)V
      intermediary method_7906 Lnet/minecraft/class_1796;method_7906(Lnet/minecraft/class_1792;I)V
      official a Lcum;a(Lcul;I)V
    • remove

      public void remove(Item item)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/entity/player/ItemCooldownManager;remove(Lnet/minecraft/item/Item;)V
      intermediary method_7900 Lnet/minecraft/class_1796;method_7900(Lnet/minecraft/class_1792;)V
      official b Lcum;b(Lcul;)V
    • onCooldownUpdate

      protected void onCooldownUpdate(Item item, int duration)
      Mappings:
      Namespace Name Mixin selector
      named onCooldownUpdate Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/item/Item;I)V
      intermediary method_7902 Lnet/minecraft/class_1796;method_7902(Lnet/minecraft/class_1792;I)V
      official b Lcum;b(Lcul;I)V
    • onCooldownUpdate

      protected void onCooldownUpdate(Item item)
      Mappings:
      Namespace Name Mixin selector
      named onCooldownUpdate Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/item/Item;)V
      intermediary method_7901 Lnet/minecraft/class_1796;method_7901(Lnet/minecraft/class_1792;)V
      official c Lcum;c(Lcul;)V