public enum GUIActionType extends java.lang.Enum<GUIActionType>
枚举常量和说明 |
---|
CHAT
以玩家聊天的形式执行
若内容以 “/" 开头,则会以玩家身份执行命令。
|
CLOSE
为玩家关闭GUI。
|
CONSOLE
以后台的形式执行指令
指令内容不需要以“/”开头。
|
MESSAGE
向玩家发送消息。
|
SOUND
向玩家发送声音。
|
限定符和类型 | 方法和说明 |
---|---|
java.util.function.BiConsumer<org.bukkit.entity.Player,java.lang.String> |
getExecutor() |
static GUIActionType |
readActionType(java.lang.String string) |
static GUIActionType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static GUIActionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final GUIActionType CHAT
public static final GUIActionType CONSOLE
public static final GUIActionType MESSAGE
public static final GUIActionType SOUND
public static final GUIActionType CLOSE
public static GUIActionType[] values()
for (GUIActionType c : GUIActionType.values()) System.out.println(c);
public static GUIActionType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public java.util.function.BiConsumer<org.bukkit.entity.Player,java.lang.String> getExecutor()
public static GUIActionType readActionType(java.lang.String string)
Copyright © 2024. All rights reserved.