Package dev.booky.betterview.api
Interface BvLevel
@NullMarked
public interface BvLevel
Exposes thread-safe API for accessing resources managed by BetterView
in relation to dimensions (e.g. chunk cache).
-
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.key.KeygetName()voidInvalidates the chunk cache for the entire dimension.voidinvalidateChunkCache(int chunkX, int chunkZ) Invalidates the chunk cache for the specified chunk position.
-
Method Details
-
getName
@Contract(pure=true) net.kyori.adventure.key.Key getName()- Returns:
- the name of this dimension
-
invalidateChunkCache
void invalidateChunkCache()Invalidates the chunk cache for the entire dimension. -
invalidateChunkCache
void invalidateChunkCache(int chunkX, int chunkZ) Invalidates the chunk cache for the specified chunk position. -
getPlayers
- Returns:
- all players which are in this dimension.
-