枚举 VerticalSurfaceType
- java.lang.Object
-
- java.lang.Enum<VerticalSurfaceType>
-
- net.minecraft.util.math.VerticalSurfaceType
-
- 所有已实现的接口:
Serializable,Comparable<VerticalSurfaceType>,StringIdentifiable
public enum VerticalSurfaceType extends Enum<VerticalSurfaceType> implements StringIdentifiable
- Mappings:
Namespace Name official cygintermediary net/minecraft/class_5932named net/minecraft/util/math/VerticalSurfaceType
-
-
字段概要
字段 修饰符和类型 字段 说明 static com.mojang.serialization.Codec<VerticalSurfaceType>CODECprivate Directiondirectionprivate Stringnameprivate intoffsetprivate static VerticalSurfaceType[]VALUES
-
构造器概要
构造器 限定符 构造器 说明 privateVerticalSurfaceType(Direction direction, int offset, String name)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 StringasString()static VerticalSurfaceTypebyName(String name)DirectiongetDirection()intgetOffset()static VerticalSurfaceTypevalueOf(String name)返回带有指定名称的该类型的枚举常量。static VerticalSurfaceType[]values()按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
-
-
-
枚举常量详细资料
-
CEILING
public static final VerticalSurfaceType CEILING
- Mappings:
Namespace Name Mixin selector official aLcyg;a:Lcyg;intermediary field_29313Lnet/minecraft/class_5932;field_29313:Lnet/minecraft/class_5932;named CEILINGLnet/minecraft/util/math/VerticalSurfaceType;CEILING:Lnet/minecraft/util/math/VerticalSurfaceType;
-
FLOOR
public static final VerticalSurfaceType FLOOR
- Mappings:
Namespace Name Mixin selector official bLcyg;b:Lcyg;intermediary field_29314Lnet/minecraft/class_5932;field_29314:Lnet/minecraft/class_5932;named FLOORLnet/minecraft/util/math/VerticalSurfaceType;FLOOR:Lnet/minecraft/util/math/VerticalSurfaceType;
-
-
字段详细资料
-
CODEC
public static final com.mojang.serialization.Codec<VerticalSurfaceType> CODEC
- Mappings:
Namespace Name Mixin selector official cLcyg;c:Lcom/mojang/serialization/Codec;intermediary field_29315Lnet/minecraft/class_5932;field_29315:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/util/math/VerticalSurfaceType;CODEC:Lcom/mojang/serialization/Codec;
-
VALUES
private static final VerticalSurfaceType[] VALUES
- Mappings:
Namespace Name Mixin selector official gLcyg;g:[Lcyg;intermediary field_29319Lnet/minecraft/class_5932;field_29319:[Lnet/minecraft/class_5932;named VALUESLnet/minecraft/util/math/VerticalSurfaceType;VALUES:[Lnet/minecraft/util/math/VerticalSurfaceType;
-
direction
private final Direction direction
- Mappings:
Namespace Name Mixin selector official dLcyg;d:Lgg;intermediary field_29316Lnet/minecraft/class_5932;field_29316:Lnet/minecraft/class_2350;named directionLnet/minecraft/util/math/VerticalSurfaceType;direction:Lnet/minecraft/util/math/Direction;
-
offset
private final int offset
- Mappings:
Namespace Name Mixin selector official eLcyg;e:Iintermediary field_29317Lnet/minecraft/class_5932;field_29317:Inamed offsetLnet/minecraft/util/math/VerticalSurfaceType;offset:I
-
name
private final String name
- Mappings:
Namespace Name Mixin selector official fLcyg;f:Ljava/lang/String;intermediary field_29318Lnet/minecraft/class_5932;field_29318:Ljava/lang/String;named nameLnet/minecraft/util/math/VerticalSurfaceType;name:Ljava/lang/String;
-
-
构造器详细资料
-
VerticalSurfaceType
private VerticalSurfaceType(Direction direction, int offset, String name)
- Mappings:
Namespace Name Mixin selector official <init>Lcyg;<init>(Ljava/lang/String;ILgg;ILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_5932;<init>(Ljava/lang/String;ILnet/minecraft/class_2350;ILjava/lang/String;)Vnamed <init>Lnet/minecraft/util/math/VerticalSurfaceType;<init>(Ljava/lang/String;ILnet/minecraft/util/math/Direction;ILjava/lang/String;)V
-
-
方法详细资料
-
values
public static VerticalSurfaceType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (VerticalSurfaceType c : VerticalSurfaceType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static VerticalSurfaceType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
getDirection
public Direction getDirection()
- Mappings:
Namespace Name Mixin selector official aLcyg;a()Lgg;intermediary method_34379Lnet/minecraft/class_5932;method_34379()Lnet/minecraft/class_2350;named getDirectionLnet/minecraft/util/math/VerticalSurfaceType;getDirection()Lnet/minecraft/util/math/Direction;
-
getOffset
public int getOffset()
- Mappings:
Namespace Name Mixin selector official bLcyg;b()Iintermediary method_34380Lnet/minecraft/class_5932;method_34380()Inamed getOffsetLnet/minecraft/util/math/VerticalSurfaceType;getOffset()I
-
byName
public static VerticalSurfaceType byName(String name)
- Mappings:
Namespace Name Mixin selector official aLcyg;a(Ljava/lang/String;)Lcyg;intermediary method_34378Lnet/minecraft/class_5932;method_34378(Ljava/lang/String;)Lnet/minecraft/class_5932;named byNameLnet/minecraft/util/math/VerticalSurfaceType;byName(Ljava/lang/String;)Lnet/minecraft/util/math/VerticalSurfaceType;
-
asString
public String asString()
- 指定者:
asString在接口中StringIdentifiable- Mappings:
Namespace Name Mixin selector official cLagz;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
-