Enum RailShape

java.lang.Object
java.lang.Enum<RailShape>
net.minecraft.block.enums.RailShape
All Implemented Interfaces:
Serializable, Comparable<RailShape>, java.lang.constant.Constable, StringIdentifiable

public enum RailShape
extends Enum<RailShape>
implements StringIdentifiable
  • 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 name)
  • Method Details

    • values

      public static RailShape[] 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

      public static RailShape valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

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

      public boolean isAscending()
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable