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: https://github.com/ViaVersion/ViaRewind
  • Constructor Details

    • CooldownUtils

      public CooldownUtils()
  • Method Details

    • setDefaultShowCooldown

      public static void setDefaultShowCooldown(String showCooldown)
    • getDefaultShowCooldown

      public static CooldownUtils.CooldownType getDefaultShowCooldown()
    • sendCooldown

      public static void sendCooldown(GeyserSession session)
      Starts sending the fake cooldown to the Bedrock client. If the cooldown is not disabled, the sent type is the cooldownPreference in PreferencesCache
      Parameters:
      session - GeyserSession