Class ItemCooldowns

java.lang.Object
net.minecraft.world.item.ItemCooldowns
Direct Known Subclasses:
ServerItemCooldowns

public class ItemCooldowns extends Object
  • Field Details

  • Constructor Details

    • ItemCooldowns

      public ItemCooldowns()
  • Method Details

    • isOnCooldown

      public boolean isOnCooldown(ItemStack p_366432_)
    • getCooldownPercent

      public float getCooldownPercent(ItemStack p_366443_, float p_41523_)
    • tick

      public void tick()
    • getCooldownGroup

      public ResourceLocation getCooldownGroup(ItemStack p_366444_)
    • addCooldown

      public void addCooldown(ItemStack p_366762_, int p_41526_)
    • addCooldown

      public void addCooldown(ResourceLocation p_366429_, int p_366819_)
    • removeCooldown

      public void removeCooldown(ResourceLocation p_366803_)
    • onCooldownStarted

      protected void onCooldownStarted(ResourceLocation p_366622_, int p_41530_)
    • onCooldownEnded

      protected void onCooldownEnded(ResourceLocation p_366721_)