public enum ModrinthUserRole extends Enum<ModrinthUserRole>
| Enum Constant and Description |
|---|
ADMIN
Admin role
|
DEVELOPER
Developer role (everyone has this by default)
|
MODERATOR
Moderator role
|
| Modifier and Type | Method and Description |
|---|---|
static ModrinthUserRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModrinthUserRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="admin") public static final ModrinthUserRole ADMIN
@SerializedName(value="moderator") public static final ModrinthUserRole MODERATOR
@SerializedName(value="developer") public static final ModrinthUserRole DEVELOPER
public static ModrinthUserRole[] values()
for (ModrinthUserRole c : ModrinthUserRole.values()) System.out.println(c);
public static ModrinthUserRole 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 © 2026. All rights reserved.