Package net.tnemc.plugincore.paper.impl
Class PaperChunkProvider
java.lang.Object
net.tnemc.plugincore.paper.impl.PaperChunkProvider
- All Implemented Interfaces:
ChunkProvider
PaperChunkProvider
- Since:
- 1.1.0.1
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsBiome(@NotNull String biome) Checks if the specified biome is contained within the chunk provider.booleancontainsStructure(@NotNull String structure) Checks if the provided structure is contained.booleanisSlime()Checks if the ChunkProvider represents a slime chunk.intx()This method is used to get the chunk's x coordinate.inty()This method is used to get the chunk's y coordinate.intz()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, waitMethods inherited from interface net.tnemc.plugincore.core.compatibility.ChunkProvider
containsBiomes, containsStructures
-
Constructor Details
-
PaperChunkProvider
-
-
Method Details
-
x
This method is used to get the chunk's x coordinate.- Specified by:
xin interfaceChunkProvider- Returns:
- The chunk's x coordinate.
-
y
This method is used to get the chunk's y coordinate.- Specified by:
yin interfaceChunkProvider- Returns:
- The chunk's y coordinate.
-
z
This method is used to get the chunk's z coordinate.- Specified by:
zin interfaceChunkProvider- Returns:
- The chunk's z coordinate.
-
isSlime
Checks if the ChunkProvider represents a slime chunk.- Specified by:
isSlimein 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:
containsBiomein 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:
containsStructurein interfaceChunkProvider- Parameters:
structure- The structure to check if contained.- Returns:
- True if the structure is contained, false otherwise.
-