Class ChunkApi
java.lang.Object
com.shanebeestudios.nms.api.world.ChunkApi
Api methods pertaining to a
Chunk
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
getEffectiveDifficulty
(Chunk chunk) Get the effective difficulty of a Chunkstatic @NotNull net.minecraft.world.level.chunk.LevelChunk
getLevelChunk
(@NotNull Chunk chunk) Get a Minecraft LevelChunk from aBukkit Chunk
getTicketHolders
(@NotNull Chunk chunk) Get the ticket holders of a chunk
-
Method Details
-
getLevelChunk
@NotNull public static @NotNull net.minecraft.world.level.chunk.LevelChunk getLevelChunk(@NotNull @NotNull Chunk chunk) Get a Minecraft LevelChunk from aBukkit Chunk
- Parameters:
chunk
- Bukkit chunk- Returns:
- Minecraft LevelChunk from Bukkit chunk
-
getTicketHolders
Get the ticket holders of a chunkThis represents the players that are holding a chunk open
- Parameters:
chunk
- Chunk to grab ticket holders from- Returns:
- List of players holding the chunk open
-
getEffectiveDifficulty
Get the effective difficulty of a ChunkThis is what is seen in the debug screen under "Local Difficulty"
- Parameters:
chunk
- Chunk to grab effective difficulty from- Returns:
- Effective difficulty of chunk
-