Interface WorldProvider
- All Known Implementing Classes:
BukkitWorldProvider
,PaperWorldProvider
,SpongeWorldProvider
public interface WorldProvider
WorldCompatibility
- Since:
- 1.1.0.1
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionchunkProvider
(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
gameTime()
Returns the current game time.@NotNull String
Retrieves the phase of the moon.@NotNull String
name()
Returns the name associated with this object.@NotNull Location
spawn()
Retrieves the spawn location.@NotNull String
weather()
Retrieves the current weather conditions.long
Retrieves the current world time.
-
Method Details
-
name
Returns the name associated with this object.- Returns:
- a string representing the name.
-
dimension
Returns the dimension of the world provider.- Returns:
- a string representing the dimension of the world provider.
-
spawn
Retrieves the spawn location.- Returns:
- a Location object representing the spawn location.
-
moonPhase
Retrieves the phase of the moon.- Returns:
- a string representing the phase of the moon.
-
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
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.
-