Enum Class RailShape

java.lang.Object
java.lang.Enum<RailShape>
net.minecraft.world.level.block.state.properties.RailShape
All Implemented Interfaces:
Serializable, Comparable<RailShape>, Constable, StringRepresentable

public enum RailShape extends Enum<RailShape> implements StringRepresentable
  • Enum Constant Details

    • NORTH_SOUTH

      public static final RailShape NORTH_SOUTH
    • EAST_WEST

      public static final RailShape EAST_WEST
    • ASCENDING_EAST

      public static final RailShape ASCENDING_EAST
    • ASCENDING_WEST

      public static final RailShape ASCENDING_WEST
    • ASCENDING_NORTH

      public static final RailShape ASCENDING_NORTH
    • ASCENDING_SOUTH

      public static final RailShape ASCENDING_SOUTH
    • SOUTH_EAST

      public static final RailShape SOUTH_EAST
    • SOUTH_WEST

      public static final RailShape SOUTH_WEST
    • NORTH_WEST

      public static final RailShape NORTH_WEST
    • NORTH_EAST

      public static final RailShape NORTH_EAST
  • Field Details

    • name

      private final String name
  • Constructor Details

    • RailShape

      private RailShape(String p_61743_)
  • Method Details

    • values

      public static RailShape[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RailShape valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<RailShape>
    • isAscending

      public boolean isAscending()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable