Class EventStorage.EventSource

java.lang.Object
net.glasslauncher.mods.api.gcapi.impl.EventStorage.EventSource
Enclosing class:
EventStorage

public static class EventStorage.EventSource extends Object
Used in the save and load listeners. Use bitwise operations, or the helper methods to tell them from the source int.
  • Field Details

  • 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.