public static enum TourRailBlock.SpeedType extends java.lang.Enum<TourRailBlock.SpeedType>
| Modifier and Type | Method and Description |
|---|---|
int |
getColor() |
VehicleEntity.Speed |
getSpeed(VehicleEntity.Speed defaultSpeed) |
static TourRailBlock.SpeedType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TourRailBlock.SpeedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TourRailBlock.SpeedType NONE
public static final TourRailBlock.SpeedType SLOW
public static final TourRailBlock.SpeedType MEDIUM
public static final TourRailBlock.SpeedType FAST
public static TourRailBlock.SpeedType[] values()
for (TourRailBlock.SpeedType c : TourRailBlock.SpeedType.values()) System.out.println(c);
public static TourRailBlock.SpeedType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nonnull public VehicleEntity.Speed getSpeed(VehicleEntity.Speed defaultSpeed)
@Nonnull public int getColor()