public enum AuthType extends Enum<AuthType>
| Modifier and Type | Method and Description |
|---|---|
static AuthType |
getById(int id) |
static AuthType |
getByName(String name)
Convert the AuthType string (from config) to the enum, OFFLINE on fail
|
static AuthType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthType OFFLINE
public static final AuthType ONLINE
public static final AuthType FLOODGATE
public static final AuthType[] VALUES
public static AuthType[] values()
for (AuthType c : AuthType.values()) System.out.println(c);
public static AuthType 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 AuthType getById(int id)
Copyright © 2021 GeyserMC. All rights reserved.