Package net.minecraft.util.math
Enum VerticalSurfaceType
- All Implemented Interfaces:
Serializable,Comparable<VerticalSurfaceType>,java.lang.constant.Constable,StringIdentifiable
public enum VerticalSurfaceType extends Enum<VerticalSurfaceType> implements StringIdentifiable
- Mappings:
Namespace Name official cxeintermediary net/minecraft/class_5932named net/minecraft/util/math/VerticalSurfaceType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<VerticalSurfaceType>CODECprivate Directiondirectionprivate Stringnameprivate intoffsetprivate static VerticalSurfaceType[]VALUES -
Constructor Summary
Constructors Modifier Constructor Description privateVerticalSurfaceType(Direction direction, int offset, String name) -
Method Summary
Modifier and Type Method Description StringasString()static VerticalSurfaceTypebyName(String name)DirectiongetDirection()intgetOffset()static VerticalSurfaceTypevalueOf(String name)Returns the enum constant of this type with the specified name.static VerticalSurfaceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CEILING
- Mappings:
Namespace Name Mixin selector official aLcxe;a:Lcxe;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
- Mappings:
Namespace Name Mixin selector official bLcxe;b:Lcxe;intermediary field_29314Lnet/minecraft/class_5932;field_29314:Lnet/minecraft/class_5932;named FLOORLnet/minecraft/util/math/VerticalSurfaceType;FLOOR:Lnet/minecraft/util/math/VerticalSurfaceType;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official cLcxe;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
- Mappings:
Namespace Name Mixin selector official gLcxe;g:[Lcxe;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
- Mappings:
Namespace Name Mixin selector official dLcxe;d:Lgc;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 eLcxe;e:Iintermediary field_29317Lnet/minecraft/class_5932;field_29317:Inamed offsetLnet/minecraft/util/math/VerticalSurfaceType;offset:I
-
name
- Mappings:
Namespace Name Mixin selector official fLcxe;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;
-
-
Constructor Details
-
VerticalSurfaceType
- Mappings:
Namespace Name Mixin selector official <init>Lcxe;<init>(Ljava/lang/String;ILgc;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
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDirection
- Mappings:
Namespace Name Mixin selector official bLcxe;b()Lgc;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 cLcxe;c()Iintermediary method_34380Lnet/minecraft/class_5932;method_34380()Inamed getOffsetLnet/minecraft/util/math/VerticalSurfaceType;getOffset()I
-
byName
- Mappings:
Namespace Name Mixin selector official aLcxe;a(Ljava/lang/String;)Lcxe;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
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official aLahb;a()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-