Package org.geysermc.geyser.util
Class CooldownUtils
java.lang.Object
org.geysermc.geyser.util.CooldownUtils
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
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CooldownUtils.CooldownType
static void
sendCooldown(GeyserSession session)
Starts sending the fake cooldown to the Bedrock client.static void
setDefaultShowCooldown(String showCooldown)
-
Constructor Details
-
CooldownUtils
public CooldownUtils()
-
-
Method Details
-
setDefaultShowCooldown
-
getDefaultShowCooldown
-
sendCooldown
Starts sending the fake cooldown to the Bedrock client. If the cooldown is not disabled, the sent type is the cooldownPreference inPreferencesCache
- Parameters:
session
- GeyserSession
-