Package net.minecraft.block
Enum AbstractRailBlock.RailShapeType
- All Implemented Interfaces:
Serializable,Comparable<AbstractRailBlock.RailShapeType>,java.lang.constant.Constable,StringIdentifiable
- Enclosing class:
- AbstractRailBlock
public static enum AbstractRailBlock.RailShapeType extends Enum<AbstractRailBlock.RailShapeType> implements StringIdentifiable
- Mappings:
Namespace Name official afe$bintermediary net/minecraft/class_154$class_156named net/minecraft/block/AbstractRailBlock$RailShapeType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDING_EASTASCENDING_NORTHASCENDING_SOUTHASCENDING_WESTEAST_WESTNORTH_EASTNORTH_SOUTHNORTH_WESTSOUTH_EASTSOUTH_WEST -
Field Summary
Fields Modifier and Type Field Description private intidprivate Stringnameprivate static AbstractRailBlock.RailShapeType[]TYPES -
Constructor Summary
Constructors Modifier Constructor Description privateRailShapeType(int id, String name) -
Method Summary
Modifier and Type Method Description StringasString()static AbstractRailBlock.RailShapeTypegetById(int id)intgetData()booleanisAscending()StringtoString()static AbstractRailBlock.RailShapeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AbstractRailBlock.RailShapeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORTH_SOUTH
- Mappings:
Namespace Name Mixin selector official aLafe$b;a:Lafe$b;intermediary field_552Lnet/minecraft/class_154$class_156;field_552:Lnet/minecraft/class_154$class_156;named NORTH_SOUTHLnet/minecraft/block/AbstractRailBlock$RailShapeType;NORTH_SOUTH:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
EAST_WEST
- Mappings:
Namespace Name Mixin selector official bLafe$b;b:Lafe$b;intermediary field_553Lnet/minecraft/class_154$class_156;field_553:Lnet/minecraft/class_154$class_156;named EAST_WESTLnet/minecraft/block/AbstractRailBlock$RailShapeType;EAST_WEST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
ASCENDING_EAST
- Mappings:
Namespace Name Mixin selector official cLafe$b;c:Lafe$b;intermediary field_554Lnet/minecraft/class_154$class_156;field_554:Lnet/minecraft/class_154$class_156;named ASCENDING_EASTLnet/minecraft/block/AbstractRailBlock$RailShapeType;ASCENDING_EAST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
ASCENDING_WEST
- Mappings:
Namespace Name Mixin selector official dLafe$b;d:Lafe$b;intermediary field_555Lnet/minecraft/class_154$class_156;field_555:Lnet/minecraft/class_154$class_156;named ASCENDING_WESTLnet/minecraft/block/AbstractRailBlock$RailShapeType;ASCENDING_WEST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
ASCENDING_NORTH
- Mappings:
Namespace Name Mixin selector official eLafe$b;e:Lafe$b;intermediary field_556Lnet/minecraft/class_154$class_156;field_556:Lnet/minecraft/class_154$class_156;named ASCENDING_NORTHLnet/minecraft/block/AbstractRailBlock$RailShapeType;ASCENDING_NORTH:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
ASCENDING_SOUTH
- Mappings:
Namespace Name Mixin selector official fLafe$b;f:Lafe$b;intermediary field_557Lnet/minecraft/class_154$class_156;field_557:Lnet/minecraft/class_154$class_156;named ASCENDING_SOUTHLnet/minecraft/block/AbstractRailBlock$RailShapeType;ASCENDING_SOUTH:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
SOUTH_EAST
- Mappings:
Namespace Name Mixin selector official gLafe$b;g:Lafe$b;intermediary field_558Lnet/minecraft/class_154$class_156;field_558:Lnet/minecraft/class_154$class_156;named SOUTH_EASTLnet/minecraft/block/AbstractRailBlock$RailShapeType;SOUTH_EAST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
SOUTH_WEST
- Mappings:
Namespace Name Mixin selector official hLafe$b;h:Lafe$b;intermediary field_559Lnet/minecraft/class_154$class_156;field_559:Lnet/minecraft/class_154$class_156;named SOUTH_WESTLnet/minecraft/block/AbstractRailBlock$RailShapeType;SOUTH_WEST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
NORTH_WEST
- Mappings:
Namespace Name Mixin selector official iLafe$b;i:Lafe$b;intermediary field_560Lnet/minecraft/class_154$class_156;field_560:Lnet/minecraft/class_154$class_156;named NORTH_WESTLnet/minecraft/block/AbstractRailBlock$RailShapeType;NORTH_WEST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
NORTH_EAST
- Mappings:
Namespace Name Mixin selector official jLafe$b;j:Lafe$b;intermediary field_561Lnet/minecraft/class_154$class_156;field_561:Lnet/minecraft/class_154$class_156;named NORTH_EASTLnet/minecraft/block/AbstractRailBlock$RailShapeType;NORTH_EAST:Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
-
Field Details
-
TYPES
- Mappings:
Namespace Name Mixin selector official kLafe$b;k:[Lafe$b;intermediary field_562Lnet/minecraft/class_154$class_156;field_562:[Lnet/minecraft/class_154$class_156;named TYPESLnet/minecraft/block/AbstractRailBlock$RailShapeType;TYPES:[Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official lLafe$b;l:Iintermediary field_563Lnet/minecraft/class_154$class_156;field_563:Inamed idLnet/minecraft/block/AbstractRailBlock$RailShapeType;id:I
-
name
- Mappings:
Namespace Name Mixin selector official mLafe$b;m:Ljava/lang/String;intermediary field_564Lnet/minecraft/class_154$class_156;field_564:Ljava/lang/String;named nameLnet/minecraft/block/AbstractRailBlock$RailShapeType;name:Ljava/lang/String;
-
-
Constructor Details
-
RailShapeType
- Mappings:
Namespace Name Mixin selector official <init>Lafe$b;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_154$class_156;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/block/AbstractRailBlock$RailShapeType;<init>(Ljava/lang/String;IILjava/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
-
getData
public int getData()- Mappings:
Namespace Name Mixin selector official aLafe$b;a()Iintermediary method_607Lnet/minecraft/class_154$class_156;method_607()Inamed getDataLnet/minecraft/block/AbstractRailBlock$RailShapeType;getData()I
-
toString
- Overrides:
toStringin classEnum<AbstractRailBlock.RailShapeType>- Mappings:
Namespace Name Mixin selector official toStringLafe$b;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_154$class_156;toString()Ljava/lang/String;named toStringLnet/minecraft/block/AbstractRailBlock$RailShapeType;toString()Ljava/lang/String;
-
isAscending
public boolean isAscending()- Mappings:
Namespace Name Mixin selector official cLafe$b;c()Zintermediary method_609Lnet/minecraft/class_154$class_156;method_609()Znamed isAscendingLnet/minecraft/block/AbstractRailBlock$RailShapeType;isAscending()Z
-
getById
- Mappings:
Namespace Name Mixin selector official aLafe$b;a(I)Lafe$b;intermediary method_608Lnet/minecraft/class_154$class_156;method_608(I)Lnet/minecraft/class_154$class_156;named getByIdLnet/minecraft/block/AbstractRailBlock$RailShapeType;getById(I)Lnet/minecraft/block/AbstractRailBlock$RailShapeType;
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official lLnw;l()Ljava/lang/String;intermediary method_6682Lnet/minecraft/class_1709;method_6682()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-