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 never a chord input. Sneak-double-F toggles the layer outside managed content when permitted. Bedrock has no F-key input.

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.
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 onQuit(PlayerQuitEvent event)
Link copied to clipboard
public void onRespawn(PlayerRespawnEvent event)
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.