ClassAbilityInputRouter

public final class ClassAbilityInputRouter implements Listener

Interprets the F-key ability layer without owning combat behavior. F,F selects mobility, F+left-click signature and F+right-click utility. Hotbar inputs also work inside the open chord. Jumping is not a Java chord input. Sneak-double-F toggles the layer outside managed content when permitted. Bedrock has no F-key input, so starting to sneak opens the window for Bedrock players instead, a jump inside it is their mobility, and /em class controls is their toggle.

Constructors

Link copied to clipboard
public void ClassAbilityInputRouter(Plugin plugin, ClassAbilityInput input)

Functions

Link copied to clipboard
public boolean controlsEnabled(Player player)
Whether this player may currently issue class-ability input.
public boolean controlsEnabled(Player player, boolean hasActiveClass)
Reuses the caller's active-class snapshot within one server-thread operation.
Link copied to clipboard
public boolean isGestureOpen(UUID playerId)
Link copied to clipboard
public void onAbilityHotbarSelection(PlayerItemHeldEvent event)
Link copied to clipboard
public void onAttack(EntityDamageByEntityEvent event)
Cancels the vanilla melee hit when it selects the chord signature ability.
Link copied to clipboard
public void onChordInteract(PlayerInteractEvent event)
Chord-window mouse bindings: left click selects signature, right click selects utility.
Link copied to clipboard
public void onChordInteractEntity(PlayerInteractEntityEvent event)
Link copied to clipboard
public void onJump(PlayerInputEvent event)
A jump inside the Bedrock window casts mobility.
Link copied to clipboard
public void onQuit(PlayerQuitEvent event)
Link copied to clipboard
public void onRespawn(PlayerRespawnEvent event)
Link copied to clipboard
public void onSneak(PlayerToggleSneakEvent event)
Starting to sneak opens the ability window for Bedrock players, who have no F key.
Link copied to clipboard
public void onSwapHands(PlayerSwapHandItemsEvent event)
Link copied to clipboard
public void onWorldChange(PlayerChangedWorldEvent event)
Link copied to clipboard
public void shutdown()
Cancels pending gesture timeouts and releases all retained player state.
Link copied to clipboard
public void toggleOutsideControls(Player player)
The command form of the outside-content toggle, for players without an F key.