public enum ViewType extends java.lang.Enum<ViewType>
定义了玩家在游戏中可以使用的不同视角模式
用于 GermPacketAPI.sendLockPlayerCameraView(org.bukkit.entity.Player, com.germ.germplugin.api.ViewType, long)
和 GermPacketAPI.sendPlayerCameraView(org.bukkit.entity.Player, com.germ.germplugin.api.ViewType)
等方法
Enum Constant and Description |
---|
CURRENT_PERSON
当前视角
保持玩家当前使用的视角类型不变
|
FIRST_PERSON
第一人称视角
从玩家眼睛位置观察的视角,玩家看不到自己的身体
|
THIRD_PERSON
第三人称视角
从玩家后方观察的视角,可以看到玩家的背部
|
THIRD_PERSON_REVERSE
第三人称反向视角
从玩家前方观察的视角,可以看到玩家的正面
|
Modifier and Type | Method and Description |
---|---|
static ViewType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ViewType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ViewType FIRST_PERSON
从玩家眼睛位置观察的视角,玩家看不到自己的身体
public static final ViewType THIRD_PERSON
从玩家后方观察的视角,可以看到玩家的背部
public static final ViewType THIRD_PERSON_REVERSE
从玩家前方观察的视角,可以看到玩家的正面
public static final ViewType CURRENT_PERSON
保持玩家当前使用的视角类型不变
public static ViewType[] values()
for (ViewType c : ViewType.values()) System.out.println(c);
public static ViewType 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