Interface WorldProvider

All Known Implementing Classes:
BukkitWorldProvider, PaperWorldProvider, SpongeWorldProvider

public interface WorldProvider
WorldCompatibility
Since:
1.1.0.1
Author:
creatorfromhell
  • Method Summary

    Modifier and Type
    Method
    Description
    chunkProvider(int x, int y, int z)
    Retrieves a ChunkProvider object based on the provided coordinates.
    @NotNull String
    Returns the dimension of the world provider.
    long
    Returns the current game time.
    @NotNull String
    Retrieves the phase of the moon.
    @NotNull String
    Returns the name associated with this object.
    @NotNull Location
    Retrieves the spawn location.
    @NotNull String
    Retrieves the current weather conditions.
    long
    Retrieves the current world time.
  • Method Details

    • name

      @NotNull @NotNull String name()
      Returns the name associated with this object.
      Returns:
      a string representing the name.
    • dimension

      @NotNull @NotNull String dimension()
      Returns the dimension of the world provider.
      Returns:
      a string representing the dimension of the world provider.
    • spawn

      @NotNull @NotNull Location spawn()
      Retrieves the spawn location.
      Returns:
      a Location object representing the spawn location.
    • moonPhase

      @NotNull @NotNull String moonPhase()
      Retrieves the phase of the moon.
      Returns:
      a string representing the phase of the moon.
    • weather

      @NotNull @NotNull String weather()
      Retrieves the current weather conditions.
      Returns:
      a string representing the current weather conditions.
    • worldTime

      long worldTime()
      Retrieves the current world time.
      Returns:
      the current world time as a long value.
    • gameTime

      long gameTime()
      Returns the current game time.
      Returns:
      the current game time as a long value.
    • chunkProvider

      ChunkProvider chunkProvider(int x, int y, int z)
      Retrieves a ChunkProvider object based on the provided coordinates.
      Parameters:
      x - The x-coordinate for the ChunkProvider.
      y - The y-coordinate for the ChunkProvider.
      z - The z-coordinate for the ChunkProvider.
      Returns:
      A ChunkProvider object that handles chunk-related operations for the specified coordinates.