类 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.
-
嵌套类概要
从类继承的嵌套类/接口 org.bukkit.event.Event
Event.Result -
字段概要
从类继承的字段 org.bukkit.event.player.PlayerEvent
player -
构造器概要
构造器构造器说明PlayerCustomClickEvent(@NotNull Player player, @NotNull NamespacedKey id, @Nullable com.google.gson.JsonElement data) -
方法概要
修饰符和类型方法说明@Nullable com.google.gson.JsonElementgetData()Gets the data of the custom action as aJsonElement, or null if not available.static @NotNull HandlerListgetId()Gets the ID of the custom action.从类继承的方法 org.bukkit.event.player.PlayerEvent
getPlayer从类继承的方法 org.bukkit.event.Event
getEventName, isAsynchronous
-
构造器详细资料
-
PlayerCustomClickEvent
-
-
方法详细资料
-
getId
Gets the ID of the custom action.- 返回:
- custom action ID
-
getData
Gets the data of the custom action as aJsonElement, or null if not available.
If not a form submission, then may be null.- 返回:
- data as JSON or null
-
getHandlers
- 指定者:
getHandlers在类中Event
-
getHandlerList
-