Package net.tnemc.plugincore.bukkit.impl
Class BukkitWorldProvider
java.lang.Object
net.tnemc.plugincore.bukkit.impl.BukkitWorldProvider
- All Implemented Interfaces:
WorldProvider
BukkitWorldProvider
- Since:
- 1.1.0.1
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
BukkitWorldProvider
-
-
Method Details
-
name
Returns the name associated with this object.- Specified by:
name
in interfaceWorldProvider
- Returns:
- a string representing the name.
-
dimension
Returns the dimension of the world provider.- Specified by:
dimension
in interfaceWorldProvider
- Returns:
- a string representing the dimension of the world provider.
-
spawn
Retrieves the spawn location.- Specified by:
spawn
in interfaceWorldProvider
- Returns:
- a Location object representing the spawn location.
-
moonPhase
Retrieves the phase of the moon.- Specified by:
moonPhase
in interfaceWorldProvider
- Returns:
- a string representing the phase of the moon.
-
weather
Retrieves the current weather conditions.- Specified by:
weather
in interfaceWorldProvider
- Returns:
- a string representing the current weather conditions.
-
worldTime
Retrieves the current world time.- Specified by:
worldTime
in interfaceWorldProvider
- Returns:
- the current world time as a long value.
-
gameTime
Returns the current game time.- Specified by:
gameTime
in interfaceWorldProvider
- Returns:
- the current game time as a long value.
-
chunkProvider
Retrieves a ChunkProvider object based on the provided coordinates.- Specified by:
chunkProvider
in interfaceWorldProvider
- 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.
-