-
Notifications
You must be signed in to change notification settings - Fork 4
ChunkUtils
The ChunkUtils class provides methods for interacting with Minecraft chunks. This utility class allows you to retrieve biome information, tile entity data, and count the number of blocks in a chunk.
-
getBiomeOfChunk(Level, ChunkPos)
Retrieves the Biome of the specified chunk.Biome biome = ChunkUtils.getBiomeOfChunk(level, chunkPos);
-
getBiomeRegistryNameOfChunk(Level, ChunkPos)
Retrieves the biome registry name of the specified chunk.String registryName = ChunkUtils.getBiomeRegistryNameOfChunk(level, chunkPos);
-
getBiomeSimpleNameOfChunk(Level, ChunkPos)
Retrieves the simple name of the biome in the specified chunk.String simpleName = ChunkUtils.getBiomeSimpleNameOfChunk(level, chunkPos);
-
getChunkTileEntities(Level, ChunkPos)
Retrieves the tile entities within the specified chunk.Collection<BlockEntity> tileEntities = ChunkUtils.getChunkTileEntities(level, chunkPos);
-
getChunkTileEntitiesRegistryNames(Level, ChunkPos)
Retrieves the registry names of tile entities in the specified chunk.String tileEntityRegistryNames = ChunkUtils.getChunkTileEntitiesRegistryNames(level, chunkPos);
-
getChunkTileEntitiesSimpleNames(Level, ChunkPos)
Retrieves the simple names of tile entities in the specified chunk.String tileEntitySimpleNames = ChunkUtils.getChunkTileEntitiesSimpleNames(level, chunkPos);
-
getChunkBlockCount(Level, ChunkPos)
Counts the number of non-air blocks in the specified chunk.int nonAirBlockCount = ChunkUtils.getChunkBlockCount(level, chunkPos);
- Error Handling: Each method logs an error message if an exception occurs, providing helpful context for debugging.
- Utility Design: This class cannot be instantiated, as it contains a private constructor and only static methods.
Variant Loader
Data Pipeline
Network & Packets
Logging
Markdown
Utility Classes
- Conversion
- Math
- Minecraft
- Schedular