@FunctionalInterface public interface Action
Interaction.| Modifier and Type | Method and Description |
|---|---|
void |
execute(Interaction interaction,
org.bukkit.entity.Player player,
boolean primaryTrigger)
Executes the action for the given player in the given interaction.
|
void execute(Interaction interaction, org.bukkit.entity.Player player, boolean primaryTrigger)
interaction - the interactionplayer - the playerprimaryTrigger - whether the action trigger was "primary".
For actions on components this is true when the component
was in direct line of sight and false if overlapped by a different component.Copyright © 2021. All rights reserved.