Class CooldownUtils

java.lang.Object
org.geysermc.geyser.util.CooldownUtils

public class CooldownUtils extends Object
Manages the sending of a cooldown indicator to the Bedrock player as there is no cooldown indicator in Bedrock. Much of the work here is from the wonderful folks from ViaRewind
  • Constructor Details

    • CooldownUtils

      public CooldownUtils()
  • Method Details

    • setCooldownHitTime

      public static void setCooldownHitTime(GeyserSession session)
      Sets the last hit time for use when ticking the attack cooldown
    • tickCooldown

      public static void tickCooldown(GeyserSession session)
    • sendCooldown

      public static void sendCooldown(GeyserSession session, CooldownUtils.CooldownType sessionPreference, double cooldown)
    • clearCooldown

      public static void clearCooldown(GeyserSession session)
    • getTitle

      public static String getTitle(double cooldown)