Class CooldownTracker

java.lang.Object
net.minecraft.util.CooldownTracker
Direct Known Subclasses:
ServerCooldownTracker

public class CooldownTracker extends Object
  • Field Details

  • Constructor Details

    • CooldownTracker

      public CooldownTracker()
  • Method Details

    • isOnCooldown

      public boolean isOnCooldown(Item p_185141_1_)
    • getCooldownPercent

      public float getCooldownPercent(Item p_185143_1_, float p_185143_2_)
    • tick

      public void tick()
    • addCooldown

      public void addCooldown(Item p_185145_1_, int p_185145_2_)
    • removeCooldown

      public void removeCooldown(Item p_185142_1_)
    • onCooldownStarted

      protected void onCooldownStarted(Item p_185140_1_, int p_185140_2_)
    • onCooldownEnded

      protected void onCooldownEnded(Item p_185146_1_)