public class GUIActionConfiguration
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected @Nullable java.lang.String |
actionContent |
protected @NotNull GUIActionType |
actionType |
protected @Nullable org.bukkit.event.inventory.ClickType |
clickType |
| 构造器和说明 |
|---|
GUIActionConfiguration(@NotNull GUIActionType actionType,
@Nullable org.bukkit.event.inventory.ClickType clickType,
@Nullable java.lang.String actionContent) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkAction(org.bukkit.entity.Player player,
org.bukkit.event.inventory.ClickType type) |
static @Nullable GUIActionConfiguration |
deserialize(@Nullable java.lang.String actionString) |
void |
executeAction(org.bukkit.entity.Player targetPlayer) |
@Nullable java.lang.String |
getActionContent() |
@NotNull GUIActionType |
getActionType() |
@Nullable org.bukkit.event.inventory.ClickType |
getClickType() |
static @NotNull GUIActionConfiguration |
of(@NotNull GUIActionType actionType) |
static @NotNull GUIActionConfiguration |
of(@NotNull GUIActionType actionType,
@Nullable org.bukkit.event.inventory.ClickType clickType) |
static @NotNull GUIActionConfiguration |
of(@NotNull GUIActionType actionType,
@Nullable org.bukkit.event.inventory.ClickType clickType,
@Nullable java.lang.String actionContent) |
static @NotNull GUIActionConfiguration |
of(@NotNull GUIActionType actionType,
@Nullable java.lang.String actionContent) |
@NotNull java.lang.String |
serialize() |
GUIItem.GUIClickAction |
toClickAction() |
@NotNull protected final @NotNull GUIActionType actionType
@Nullable protected final @Nullable org.bukkit.event.inventory.ClickType clickType
@Nullable protected final @Nullable java.lang.String actionContent
public GUIActionConfiguration(@NotNull
@NotNull GUIActionType actionType,
@Nullable
@Nullable org.bukkit.event.inventory.ClickType clickType,
@Nullable
@Nullable java.lang.String actionContent)
@NotNull public static @NotNull GUIActionConfiguration of(@NotNull @NotNull GUIActionType actionType, @Nullable @Nullable org.bukkit.event.inventory.ClickType clickType, @Nullable @Nullable java.lang.String actionContent)
@NotNull public static @NotNull GUIActionConfiguration of(@NotNull @NotNull GUIActionType actionType, @Nullable @Nullable java.lang.String actionContent)
@NotNull public static @NotNull GUIActionConfiguration of(@NotNull @NotNull GUIActionType actionType, @Nullable @Nullable org.bukkit.event.inventory.ClickType clickType)
@NotNull public static @NotNull GUIActionConfiguration of(@NotNull @NotNull GUIActionType actionType)
@Nullable public @Nullable org.bukkit.event.inventory.ClickType getClickType()
@NotNull public @NotNull GUIActionType getActionType()
@Nullable public @Nullable java.lang.String getActionContent()
public void checkAction(org.bukkit.entity.Player player,
org.bukkit.event.inventory.ClickType type)
public void executeAction(org.bukkit.entity.Player targetPlayer)
public GUIItem.GUIClickAction toClickAction()
@Nullable @Contract(value="null->null") public static @Nullable GUIActionConfiguration deserialize(@Nullable @Nullable java.lang.String actionString)
@NotNull public @NotNull java.lang.String serialize()
Copyright © 2025. All rights reserved.