Enum Class RailTrack

java.lang.Object
java.lang.Enum<RailTrack>
fr.fidorial.world.block.property.RailTrack
All Implemented Interfaces:
Serializable, Comparable<RailTrack>, Constable

@MinecraftData public enum RailTrack extends Enum<RailTrack>
The track a rail lays.
Since:
0.1.0
  • Enum Constant Details

    • NORTH_SOUTH

      public static final RailTrack NORTH_SOUTH
    • EAST_WEST

      public static final RailTrack EAST_WEST
    • ASCENDING_EAST

      public static final RailTrack ASCENDING_EAST
    • ASCENDING_WEST

      public static final RailTrack ASCENDING_WEST
    • ASCENDING_NORTH

      public static final RailTrack ASCENDING_NORTH
    • ASCENDING_SOUTH

      public static final RailTrack ASCENDING_SOUTH
    • SOUTH_EAST

      public static final RailTrack SOUTH_EAST
    • SOUTH_WEST

      public static final RailTrack SOUTH_WEST
    • NORTH_WEST

      public static final RailTrack NORTH_WEST
    • NORTH_EAST

      public static final RailTrack NORTH_EAST
  • Method Details

    • values

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