Class Player.Events

    • Constructor Detail

      • Events

        public Events()
    • Method Detail

      • contains

        public boolean contains​(@EventFlags
                                int event)
        Returns whether the given event occurred.
        Overrides:
        contains in class MutableFlags
        Parameters:
        event - The event.
        Returns:
        Whether the event occurred.
      • containsAny

        public boolean containsAny​(@EventFlags
                                   int... events)
        Returns whether any of the given events occurred.
        Overrides:
        containsAny in class MutableFlags
        Parameters:
        events - The events.
        Returns:
        Whether any of the events occurred.
      • get

        @EventFlags
        public int get​(int index)
        Returns the event at the given index.

        Although index-based access is possible, it doesn't imply a particular order of these events.

        Overrides:
        get in class MutableFlags
        Parameters:
        index - The index. Must be between 0 (inclusive) and MutableFlags.size() (exclusive).
        Returns:
        The event at the given index.