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 StringReturns the dimension of the world provider.longgameTime()Returns the current game time.@NotNull StringRetrieves the phase of the moon.@NotNull Stringname()Returns the name associated with this object.@NotNull Locationspawn()Retrieves the spawn location.@NotNull Stringweather()Retrieves the current weather conditions.longRetrieves the current world time.
-
Constructor Details
-
BukkitWorldProvider
-
-
Method Details
-
name
Returns the name associated with this object.- Specified by:
namein interfaceWorldProvider- Returns:
- a string representing the name.
-
dimension
Returns the dimension of the world provider.- Specified by:
dimensionin interfaceWorldProvider- Returns:
- a string representing the dimension of the world provider.
-
spawn
Retrieves the spawn location.- Specified by:
spawnin interfaceWorldProvider- Returns:
- a Location object representing the spawn location.
-
moonPhase
Retrieves the phase of the moon.- Specified by:
moonPhasein interfaceWorldProvider- Returns:
- a string representing the phase of the moon.
-
weather
Retrieves the current weather conditions.- Specified by:
weatherin interfaceWorldProvider- Returns:
- a string representing the current weather conditions.
-
worldTime
Retrieves the current world time.- Specified by:
worldTimein interfaceWorldProvider- Returns:
- the current world time as a long value.
-
gameTime
Returns the current game time.- Specified by:
gameTimein interfaceWorldProvider- Returns:
- the current game time as a long value.
-
chunkProvider
Retrieves a ChunkProvider object based on the provided coordinates.- Specified by:
chunkProviderin 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.
-