Class SimpleWorld

    • Method Detail

      • setBukkitWorld

        public void setBukkitWorld​(@NotNull
                                   @NotNull org.bukkit.World world)
        Description copied from interface: HyperWorld
        Set the Bukkit world associated with this world
        Specified by:
        setBukkitWorld in interface HyperWorld
        Parameters:
        world - Bukkit world instance
      • saveConfiguration

        public void saveConfiguration()
        Description copied from interface: HyperWorld
        Save the world configuration file asynchronously
        Specified by:
        saveConfiguration in interface HyperWorld
      • isLoaded

        public boolean isLoaded()
        Description copied from interface: HyperWorld
        Check whether or not the world is loaded
        Specified by:
        isLoaded in interface HyperWorld
        Returns:
        True if the world is loaded, false if not
      • sendWorldInfo

        public void sendWorldInfo​(@NotNull
                                  @NotNull org.bukkit.command.CommandSender sender)
        Description copied from interface: HyperWorld
        Send world information to a command sender
        Specified by:
        sendWorldInfo in interface HyperWorld
        Parameters:
        sender - Sender that should receive the messages
      • teleportPlayer

        public void teleportPlayer​(@NotNull
                                   @NotNull org.bukkit.entity.Player player)
        Description copied from interface: HyperWorld
        Teleport a player to this world
        Specified by:
        teleportPlayer in interface HyperWorld
        Parameters:
        player - Player to teleport
      • getSpawn

        @Nullable
        public @Nullable org.bukkit.Location getSpawn()
        Description copied from interface: HyperWorld
        Get the world spawn location
        Specified by:
        getSpawn in interface HyperWorld
        Returns:
        World spawn
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getWorldUUID

        @NotNull
        public @NotNull UUID getWorldUUID()
        Description copied from interface: HyperWorld
        Get the world UUID
        Specified by:
        getWorldUUID in interface HyperWorld
        Returns:
        world UUID
      • getBukkitWorld

        @Nullable
        public @Nullable org.bukkit.World getBukkitWorld()
        Description copied from interface: HyperWorld
        Get the Bukkit world associated with this world
        Specified by:
        getBukkitWorld in interface HyperWorld
        Returns:
        Bukkit world instance
      • setFlag

        public <T> void setFlag​(@NotNull
                                @NotNull WorldFlag<T,​?> flag,
                                @NotNull
                                @NotNull String value)
                         throws FlagParseException
        Description copied from interface: HyperWorld
        Set the value of a flag in this world
        Specified by:
        setFlag in interface HyperWorld
        Type Parameters:
        T - Flag value type
        Parameters:
        flag - Flag to set
        value - Flag value
        Throws:
        FlagParseException - If the flag fails to parse
      • removeFlag

        public <T> void removeFlag​(@NotNull
                                   @NotNull WorldFlag<T,​?> flagInstance)
        Description copied from interface: HyperWorld
        Remove a flag from the world
        Specified by:
        removeFlag in interface HyperWorld
        Type Parameters:
        T - Flag value type
        Parameters:
        flagInstance - Flag to remove
      • getFlag

        @NotNull
        public <T> T getFlag​(@NotNull
                             @NotNull Class<? extends WorldFlag<T,​?>> flagClass)
        Description copied from interface: HyperWorld
        Get the value of a flag
        Specified by:
        getFlag in interface HyperWorld
        Type Parameters:
        T - Flag value type
        Parameters:
        flagClass - Flag class
        Returns:
        Flag value
      • refreshFlags

        public void refreshFlags()
        Description copied from interface: HyperWorld
        Refresh the world flags
        Specified by:
        refreshFlags in interface HyperWorld
      • getFlags

        @NotNull
        public @NotNull Collection<WorldFlag<?,​?>> getFlags()
        Description copied from interface: HyperWorld
        Return all applicable world flags
        Specified by:
        getFlags in interface HyperWorld
        Returns:
        Immutable view of all flags