public static enum TimeSkipEvent.SkipReason extends Enum<TimeSkipEvent.SkipReason>
| Enum Constant and Description | 
|---|
COMMAND
When time is changed using the vanilla /time command. 
 | 
CUSTOM
When time is changed by a plugin. 
 | 
NIGHT_SKIP
When time is changed by all players sleeping in their beds and the
 night skips. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static TimeSkipEvent.SkipReason | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static TimeSkipEvent.SkipReason[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final TimeSkipEvent.SkipReason COMMAND
public static final TimeSkipEvent.SkipReason CUSTOM
public static final TimeSkipEvent.SkipReason NIGHT_SKIP
public static TimeSkipEvent.SkipReason[] values()
for (TimeSkipEvent.SkipReason c : TimeSkipEvent.SkipReason.values()) System.out.println(c);
public static TimeSkipEvent.SkipReason 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 nullCopyright © 2021. All rights reserved.