public enum HudMessageType extends java.lang.Enum<HudMessageType>
定义了不同类型的HUD消息显示位置和方式
用于 GermPacketAPI.sendHudMessage(org.bukkit.entity.Player, HudMessageType, String) 方法
| Enum Constant and Description |
|---|
ANCHOR
锚点显示类型
消息将显示在指定的锚点位置
当使用此类型时,消息格式应为"锚点名<->消息内容"
|
CENTER1
居中显示类型1
消息将显示在HUD的中央区域
|
LEFT1
左侧显示类型1
消息将显示在HUD的左侧区域
|
| Modifier and Type | Method and Description |
|---|---|
static HudMessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HudMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HudMessageType LEFT1
消息将显示在HUD的左侧区域
public static final HudMessageType CENTER1
消息将显示在HUD的中央区域
public static final HudMessageType ANCHOR
消息将显示在指定的锚点位置
当使用此类型时,消息格式应为"锚点名<->消息内容"
public static HudMessageType[] values()
for (HudMessageType c : HudMessageType.values()) System.out.println(c);
public static HudMessageType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null