Package org.bukkit.event.player
Class PlayerCustomClickEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerCustomClickEvent
Called after a player runs a custom action from a chat event or form
submission.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerCustomClickEvent(Player player, NamespacedKey id, com.google.gson.JsonElement data) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementgetData()Gets the data of the custom action as aJsonElement, or null if not available.static HandlerListgetId()Gets the ID of the custom action.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerCustomClickEvent
public PlayerCustomClickEvent(@NotNull Player player, @NotNull NamespacedKey id, @Nullable com.google.gson.JsonElement data)
-
-
Method Details
-
getId
Gets the ID of the custom action.- Returns:
- custom action ID
-
getData
@Nullable public com.google.gson.JsonElement getData()Gets the data of the custom action as aJsonElement, or null if not available.
If not a form submission, then may be null.- Returns:
- data as JSON or null
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-