public enum ChunkTimespan extends Enum<ChunkTimespan>
| Modifier and Type | Method and Description |
|---|---|
static ChunkTimespan |
fromString(String s) |
String |
toString() |
static ChunkTimespan |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChunkTimespan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChunkTimespan DAY
public static final ChunkTimespan MONTH
public static final ChunkTimespan YEAR
public static ChunkTimespan[] values()
for (ChunkTimespan c : ChunkTimespan.values()) System.out.println(c);
public static ChunkTimespan valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ChunkTimespan fromString(String s) throws Exception
Exceptionpublic String toString()
toString in class Enum<ChunkTimespan>Copyright © 2019. All Rights Reserved.