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 Type
    Method
    Description
    net.kyori.adventure.key.Key
     
    @Unmodifiable Set<BvPlayer>
     
    void
    Invalidates the chunk cache for the entire dimension.
    void
    invalidateChunkCache(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

      @Contract(pure=true) @Unmodifiable Set<BvPlayer> getPlayers()
      Returns:
      all players which are in this dimension.