Package net.tnemc.plugincore.bukkit.impl
Class BukkitChunkProvider
java.lang.Object
net.tnemc.plugincore.bukkit.impl.BukkitChunkProvider
- All Implemented Interfaces:
ChunkProvider
BukkitChunkProvider
- Since:
- 1.1.0.1
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsBiome
(@NotNull String biome) Checks if the specified biome is contained within the chunk provider.boolean
containsStructure
(@NotNull String structure) Checks if the provided structure is contained.boolean
isSlime()
Checks if the ChunkProvider represents a slime chunk.int
x()
This method is used to get the chunk's x coordinate.int
y()
This method is used to get the chunk's y coordinate.int
z()
This method is used to get the chunk's z coordinate.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.tnemc.plugincore.core.compatibility.ChunkProvider
containsBiomes, containsStructures
-
Constructor Details
-
BukkitChunkProvider
-
-
Method Details
-
x
This method is used to get the chunk's x coordinate.- Specified by:
x
in interfaceChunkProvider
- Returns:
- The chunk's x coordinate.
-
y
This method is used to get the chunk's y coordinate.- Specified by:
y
in interfaceChunkProvider
- Returns:
- The chunk's y coordinate.
-
z
This method is used to get the chunk's z coordinate.- Specified by:
z
in interfaceChunkProvider
- Returns:
- The chunk's z coordinate.
-
isSlime
Checks if the ChunkProvider represents a slime chunk.- Specified by:
isSlime
in interfaceChunkProvider
- Returns:
- True if the ChunkProvider is a slime chunk, false otherwise.
-
containsBiome
Checks if the specified biome is contained within the chunk provider.- Specified by:
containsBiome
in interfaceChunkProvider
- Parameters:
biome
- The biome to check for.- Returns:
- True if the specified biome is contained, false otherwise.
-
containsStructure
Checks if the provided structure is contained. Only on 1.21.1.- Specified by:
containsStructure
in interfaceChunkProvider
- Parameters:
structure
- The structure to check if contained.- Returns:
- True if the structure is contained, false otherwise.
-