Interface ChangeWorldBorderEvent

    • Method Detail

      • previousBorder

        Optional<WorldBorder> previousBorder()
        Gets the border that was previously used as an Optional. There may be no border set for the target (especially if it is a player), in which case, Optional.empty() is returned.
        Returns:
        The border that was previously in use, if there was one.
      • originalNewBorder

        Optional<WorldBorder> originalNewBorder()
        Gets the border that was originally meant to be used as an Optional. For some targets, the border may be unset and therefore they may not always have a border. It is in these instances that Optional.empty() is returned.
        Returns:
        The border that will be in use, if there is one.
      • newBorder

        Optional<WorldBorder> newBorder()
        Gets the border that will be used as an Optional. For some targets, the border may be unset and therefore they may not always have a border. It is in these instances that Optional.empty() is returned.
        Returns:
        The border that will be in use, if there is one.
      • setNewBorder

        void setNewBorder​(WorldBorder worldBorder)
        Sets the border that will be used.
        Parameters:
        worldBorder - The border that will be used.