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 cxl
  • Field Details

    • entries

      private final Map<Identifier,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 Lcxl;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 Lcxl;b:I
  • Constructor Details

    • ItemCooldownManager

      public ItemCooldownManager()
  • Method Details

    • isCoolingDown

      public boolean isCoolingDown(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named isCoolingDown Lnet/minecraft/entity/player/ItemCooldownManager;isCoolingDown(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7904 Lnet/minecraft/class_1796;method_7904(Lnet/minecraft/class_1799;)Z
      official a Lcxl;a(Lcxo;)Z
    • getCooldownProgress

      public float getCooldownProgress(ItemStack stack, float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      named getCooldownProgress Lnet/minecraft/entity/player/ItemCooldownManager;getCooldownProgress(Lnet/minecraft/item/ItemStack;F)F
      intermediary method_7905 Lnet/minecraft/class_1796;method_7905(Lnet/minecraft/class_1799;F)F
      official a Lcxl;a(Lcxo;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 Lcxl;a()V
    • getGroup

      public Identifier getGroup(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getGroup Lnet/minecraft/entity/player/ItemCooldownManager;getGroup(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Identifier;
      intermediary method_62836 Lnet/minecraft/class_1796;method_62836(Lnet/minecraft/class_1799;)Lnet/minecraft/class_2960;
      official b Lcxl;b(Lcxo;)Lalz;
    • set

      public void set(ItemStack stack, int duration)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/entity/player/ItemCooldownManager;set(Lnet/minecraft/item/ItemStack;I)V
      intermediary method_62835 Lnet/minecraft/class_1796;method_62835(Lnet/minecraft/class_1799;I)V
      official a Lcxl;a(Lcxo;I)V
    • set

      public void set(Identifier groupId, int duration)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/entity/player/ItemCooldownManager;set(Lnet/minecraft/util/Identifier;I)V
      intermediary method_7906 Lnet/minecraft/class_1796;method_7906(Lnet/minecraft/class_2960;I)V
      official a Lcxl;a(Lalz;I)V
    • remove

      public void remove(Identifier groupId)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/entity/player/ItemCooldownManager;remove(Lnet/minecraft/util/Identifier;)V
      intermediary method_7900 Lnet/minecraft/class_1796;method_7900(Lnet/minecraft/class_2960;)V
      official a Lcxl;a(Lalz;)V
    • onCooldownUpdate

      protected void onCooldownUpdate(Identifier groupId, int duration)
      Mappings:
      Namespace Name Mixin selector
      named onCooldownUpdate Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/util/Identifier;I)V
      intermediary method_7902 Lnet/minecraft/class_1796;method_7902(Lnet/minecraft/class_2960;I)V
      official b Lcxl;b(Lalz;I)V
    • onCooldownUpdate

      protected void onCooldownUpdate(Identifier groupId)
      Mappings:
      Namespace Name Mixin selector
      named onCooldownUpdate Lnet/minecraft/entity/player/ItemCooldownManager;onCooldownUpdate(Lnet/minecraft/util/Identifier;)V
      intermediary method_7901 Lnet/minecraft/class_1796;method_7901(Lnet/minecraft/class_2960;)V
      official b Lcxl;b(Lalz;)V