Class EventStorage.EventSource
java.lang.Object
net.glasslauncher.mods.api.gcapi.impl.EventStorage.EventSource
- Enclosing class:
- EventStorage
Used in the save and load listeners. Use bitwise operations, or the helper methods to tell them from the source int.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsAll(int haystack, int... needles) Helper method for those unfamiliar with bitwise stuff.static booleancontainsOne(int haystack, int... needles) Helper method for those unfamiliar with bitwise stuff.
-
Field Details
-
UNKNOWN
public static final int UNKNOWN- See Also:
-
GAME_LOAD
public static final int GAME_LOAD- See Also:
-
MODDED_SERVER_JOIN
public static final int MODDED_SERVER_JOIN- See Also:
-
VANILLA_SERVER_JOIN
public static final int VANILLA_SERVER_JOIN- See Also:
-
SERVER_JOIN
public static final int SERVER_JOIN- See Also:
-
USER_SAVE
public static final int USER_SAVE- See Also:
-
MOD_SAVE
public static final int MOD_SAVE- See Also:
-
SERVER_EXPORT
public static final int SERVER_EXPORT- See Also:
-
-
Constructor Details
-
EventSource
public EventSource()
-
-
Method Details
-
containsAll
public static boolean containsAll(int haystack, int... needles) Helper method for those unfamiliar with bitwise stuff. If ALL needles are inside the haystack, return true. -
containsOne
public static boolean containsOne(int haystack, int... needles) Helper method for those unfamiliar with bitwise stuff. If ONE of needles is inside the haystack, return true.
-