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
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclearCooldown(GeyserSession session) static StringgetTitle(double cooldown) static voidsendCooldown(GeyserSession session, CooldownUtils.CooldownType sessionPreference, double cooldown) static voidsetCooldownHitTime(GeyserSession session) Sets the last hit time for use when ticking the attack cooldownstatic voidtickCooldown(GeyserSession session)
-
Constructor Details
-
CooldownUtils
public CooldownUtils()
-
-
Method Details
-
setCooldownHitTime
Sets the last hit time for use when ticking the attack cooldown -
tickCooldown
-
sendCooldown
public static void sendCooldown(GeyserSession session, CooldownUtils.CooldownType sessionPreference, double cooldown) -
clearCooldown
-
getTitle
-