Class SpongeWorldProvider

java.lang.Object
net.tnemc.plugincore.sponge.impl.SpongeWorldProvider
All Implemented Interfaces:
WorldProvider

public class SpongeWorldProvider extends Object implements WorldProvider
SpongeWorldProvider
Since:
1.1.0.1
Author:
creatorfromhell
  • Constructor Details

    • SpongeWorldProvider

      public SpongeWorldProvider(org.spongepowered.api.world.server.ServerWorld world)
  • Method Details

    • name

      @NotNull public @NotNull String name()
      Returns the name associated with this object.
      Specified by:
      name in interface WorldProvider
      Returns:
      a string representing the name.
    • dimension

      @NotNull public @NotNull String dimension()
      Returns the dimension of the world provider.
      Specified by:
      dimension in interface WorldProvider
      Returns:
      a string representing the dimension of the world provider.
    • spawn

      @NotNull public @NotNull Location spawn()
      Retrieves the spawn location.
      Specified by:
      spawn in interface WorldProvider
      Returns:
      a Location object representing the spawn location.
    • moonPhase

      @NotNull public @NotNull String moonPhase()
      Retrieves the phase of the moon.
      Specified by:
      moonPhase in interface WorldProvider
      Returns:
      a string representing the phase of the moon.
    • weather

      @NotNull public @NotNull String weather()
      Retrieves the current weather conditions.
      Specified by:
      weather in interface WorldProvider
      Returns:
      a string representing the current weather conditions.
    • worldTime

      public long worldTime()
      Retrieves the current world time.
      Specified by:
      worldTime in interface WorldProvider
      Returns:
      the current world time as a long value.
    • gameTime

      public long gameTime()
      Returns the current game time.
      Specified by:
      gameTime in interface WorldProvider
      Returns:
      the current game time as a long value.
    • chunkProvider

      public ChunkProvider chunkProvider(int x, int y, int z)
      Retrieves a ChunkProvider object based on the provided coordinates.
      Specified by:
      chunkProvider in interface WorldProvider
      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.