java.io.Serializable
, java.lang.Comparable<ActivityFlag>
public enum ActivityFlag extends java.lang.Enum<ActivityFlag>
RichPresence
Enum Constant | Description |
---|---|
INSTANCE |
|
JOIN |
|
JOIN_REQUEST |
|
PLAY |
|
SPECTATE |
|
SYNC |
Modifier and Type | Method | Description |
---|---|---|
static java.util.EnumSet<ActivityFlag> |
getFlags(int raw) |
Maps the ActivityFlags based on the provided bitmask.
|
int |
getOffset() |
The offset for this flag:
1 << offset |
int |
getRaw() |
The raw bitmask for this flag
|
static ActivityFlag |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ActivityFlag[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ActivityFlag INSTANCE
public static final ActivityFlag JOIN
public static final ActivityFlag SPECTATE
public static final ActivityFlag JOIN_REQUEST
public static final ActivityFlag SYNC
public static final ActivityFlag PLAY
public static ActivityFlag[] values()
for (ActivityFlag c : ActivityFlag.values()) System.out.println(c);
public static ActivityFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getOffset()
1 << offset
public int getRaw()
public static java.util.EnumSet<ActivityFlag> getFlags(int raw)
raw
- The bitmaskRichPresence.getFlags()
,
EnumSet