Class Player.Commands

  • Enclosing interface:
    Player

    public static final class Player.Commands
    extends Object
    A set of commands.

    Instances are immutable.

    • Field Detail

      • EMPTY

        public static final Player.Commands EMPTY
        An empty set of commands.
    • Method Detail

      • contains

        public boolean contains​(@Command
                                int command)
        Returns whether the set of commands contains the specified Player.Command.
      • size

        public int size()
        Returns the number of commands in this set.
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object