Interface ChunkProvider
- All Known Implementing Classes:
BukkitChunkProvider,PaperChunkProvider,SpongeChunkProvider
public interface ChunkProvider
ChunkProvider
- Since:
- 1.1.0.1
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsBiome(@NotNull String biome) Checks if the specified biome is contained within the chunk provider.default booleancontainsBiomes(@NotNull List<String> biomes) Checks if the provided list of biomes contains any of the specified biomes.booleancontainsStructure(@NotNull String structure) Checks if the provided structure is contained.default booleancontainsStructures(@NotNull List<String> structures) Checks if the provided list of structures contains any structures.booleanisSlime()Checks if the ChunkProvider represents a slime chunk.intx()This method is used to get the chunk's x coordinate.default inty()This method is used to get the chunk's y coordinate.intz()This method is responsible for returning a value of type int.
-
Method Details
-
x
int x()This method is used to get the chunk's x coordinate.- Returns:
- The chunk's x coordinate.
-
y
This method is used to get the chunk's y coordinate.- Returns:
- The chunk's y coordinate.
-
z
int z()This method is responsible for returning a value of type int. The specific logic and calculations performed to determine this value are not documented.- Returns:
- The integer value calculated by the method.
-
isSlime
boolean isSlime()Checks if the ChunkProvider represents a slime chunk.- Returns:
- True if the ChunkProvider is a slime chunk, false otherwise.
-
containsBiome
Checks if the specified biome is contained within the chunk provider.- Parameters:
biome- The biome to check for.- Returns:
- True if the specified biome is contained, false otherwise.
-
containsBiomes
Checks if the provided list of biomes contains any of the specified biomes.- Parameters:
biomes- The list of biomes to check for.- Returns:
- True if any of the specified biomes are contained in the list, false otherwise.
-
containsStructure
Checks if the provided structure is contained.- Parameters:
structure- The structure to check if contained.- Returns:
- True if the structure is contained, false otherwise.
-
containsStructures
Checks if the provided list of structures contains any structures.- Parameters:
structures- The list of structures to check for.- Returns:
- True if any of the structures are contained in the list, false otherwise.
-