Serializable, Comparable<Feature>public enum Feature extends Enum<Feature>
Provides a list of features which enable special elements within the game.
These values effectively provide an implementation agnostic layer between the game and launcher implementations which permits the conditional passing of arbitrary arguments or retrieval of libraries.
| Enum Constant | Description |
|---|---|
CUSTOM_RESOLUTION |
|
DEMO_USER |
| Modifier and Type | Method | Description |
|---|---|---|
static Optional<Feature> |
byKey(String key) |
|
String |
getKey() |
|
static Feature |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Feature[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Feature CUSTOM_RESOLUTION
public static final Feature DEMO_USER
public static Feature[] values()
for (Feature c : Feature.values()) System.out.println(c);
public static Feature 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 null@NonNull public String getKey()
Copyright © 2018 Basin. All rights reserved.