Class ChangeSet.See

  • Enclosing class:
    ChangeSet

    public static class ChangeSet.See
    extends java.lang.Object
    Class to control the visibility of a change.
    • Constructor Detail

      • See

        private See​(int type)
    • Method Detail

      • check

        public ChangeSet.SeeCheck check​(Player player)
        Check this visibility with respect to a player.
        Parameters:
        player - The Player to consider.
        Returns:
        If the player satisfies the visibility test return VISIBLE, or INVISIBLE on failure, or SPECIAL if indeterminate.
      • all

        public static ChangeSet.See all()
        Make this change visible to all players.
        Returns:
        See(ALL).
      • perhaps

        public static ChangeSet.See perhaps()
        Make this change visible to all players, provided they can see the objects that are being changed.
        Returns:
        See(PERHAPS).
      • only

        public static ChangeSet.See only​(Player player)
        Make this change visible only to the given player.
        Parameters:
        player - The Player to see this change.
        Returns:
        A See(ONLY) with attached player.
      • always

        public ChangeSet.See always​(Player player)
        Make this change visible to the given player.
        Parameters:
        player - The Player to see this change.
        Returns:
        A See with attached player.
      • perhapsOnly

        public ChangeSet.See perhapsOnly​(Player player)
        Make this change visible to the given player, provided the player can see the objects being changed.
        Parameters:
        player - The Player to perhaps see this change.
        Returns:
        A See with attached player.
      • except

        public ChangeSet.See except​(Player player)
        Make this change invisible to the given player.
        Parameters:
        player - The Player that can not see this change.
        Returns:
        A See with attached player.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object