public enum DemoMessageValue extends Enum<DemoMessageValue> implements GameEventValue
| Enum Constant and Description |
|---|
INVENTORY_CONTROL |
JUMP_CONTROL |
MOVEMENT_CONTROLS |
SCREENSHOT_CONTROL |
WELCOME |
| Modifier and Type | Method and Description |
|---|---|
static DemoMessageValue |
from(int id) |
int |
getId() |
static DemoMessageValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DemoMessageValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DemoMessageValue WELCOME
public static final DemoMessageValue MOVEMENT_CONTROLS
public static final DemoMessageValue JUMP_CONTROL
public static final DemoMessageValue INVENTORY_CONTROL
public static final DemoMessageValue SCREENSHOT_CONTROL
public static DemoMessageValue[] values()
for (DemoMessageValue c : DemoMessageValue.values()) System.out.println(c);
public static DemoMessageValue 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 int getId()
public static DemoMessageValue from(int id)
Copyright © 2023. All rights reserved.