枚举 VerticalSurfaceType

    • 枚举常量详细资料

      • CEILING

        public static final VerticalSurfaceType CEILING
        Mappings:
        Namespace Name Mixin selector
        official a Lcyg;a:Lcyg;
        intermediary field_29313 Lnet/minecraft/class_5932;field_29313:Lnet/minecraft/class_5932;
        named CEILING Lnet/minecraft/util/math/VerticalSurfaceType;CEILING:Lnet/minecraft/util/math/VerticalSurfaceType;
      • FLOOR

        public static final VerticalSurfaceType FLOOR
        Mappings:
        Namespace Name Mixin selector
        official b Lcyg;b:Lcyg;
        intermediary field_29314 Lnet/minecraft/class_5932;field_29314:Lnet/minecraft/class_5932;
        named FLOOR Lnet/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 c Lcyg;c:Lcom/mojang/serialization/Codec;
        intermediary field_29315 Lnet/minecraft/class_5932;field_29315:Lcom/mojang/serialization/Codec;
        named CODEC Lnet/minecraft/util/math/VerticalSurfaceType;CODEC:Lcom/mojang/serialization/Codec;
      • VALUES

        private static final VerticalSurfaceType[] VALUES
        Mappings:
        Namespace Name Mixin selector
        official g Lcyg;g:[Lcyg;
        intermediary field_29319 Lnet/minecraft/class_5932;field_29319:[Lnet/minecraft/class_5932;
        named VALUES Lnet/minecraft/util/math/VerticalSurfaceType;VALUES:[Lnet/minecraft/util/math/VerticalSurfaceType;
      • direction

        private final Direction direction
        Mappings:
        Namespace Name Mixin selector
        official d Lcyg;d:Lgg;
        intermediary field_29316 Lnet/minecraft/class_5932;field_29316:Lnet/minecraft/class_2350;
        named direction Lnet/minecraft/util/math/VerticalSurfaceType;direction:Lnet/minecraft/util/math/Direction;
      • offset

        private final int offset
        Mappings:
        Namespace Name Mixin selector
        official e Lcyg;e:I
        intermediary field_29317 Lnet/minecraft/class_5932;field_29317:I
        named offset Lnet/minecraft/util/math/VerticalSurfaceType;offset:I
      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official f Lcyg;f:Ljava/lang/String;
        intermediary field_29318 Lnet/minecraft/class_5932;field_29318:Ljava/lang/String;
        named name Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_5932;<init>(Ljava/lang/String;ILnet/minecraft/class_2350;ILjava/lang/String;)V
        named <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 a Lcyg;a()Lgg;
        intermediary method_34379 Lnet/minecraft/class_5932;method_34379()Lnet/minecraft/class_2350;
        named getDirection Lnet/minecraft/util/math/VerticalSurfaceType;getDirection()Lnet/minecraft/util/math/Direction;
      • getOffset

        public int getOffset()
        Mappings:
        Namespace Name Mixin selector
        official b Lcyg;b()I
        intermediary method_34380 Lnet/minecraft/class_5932;method_34380()I
        named getOffset Lnet/minecraft/util/math/VerticalSurfaceType;getOffset()I
      • byName

        public static VerticalSurfaceType byName​(String name)
        Mappings:
        Namespace Name Mixin selector
        official a Lcyg;a(Ljava/lang/String;)Lcyg;
        intermediary method_34378 Lnet/minecraft/class_5932;method_34378(Ljava/lang/String;)Lnet/minecraft/class_5932;
        named byName Lnet/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 c Lagz;c()Ljava/lang/String;
        intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
        named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;