Interface LevelReader

All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, LevelHeightAccessor
All Known Subinterfaces:
CommonLevelAccessor, LevelAccessor, LevelTimeAccess, ServerLevelAccessor, WorldGenLevel
All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion

  • Method Details

    • getChunk

      @Nullable ChunkAccess getChunk(int p_46823_, int p_46824_, ChunkStatus p_46825_, boolean p_46826_)
    • hasChunk

      @Deprecated boolean hasChunk(int p_46838_, int p_46839_)
      Deprecated.
    • getHeight

      int getHeight(Heightmap.Types p_46827_, int p_46828_, int p_46829_)
    • getSkyDarken

      int getSkyDarken()
    • getBiomeManager

      BiomeManager getBiomeManager()
    • getBiome

      default Biome getBiome(BlockPos p_46858_)
    • getBlockStatesIfLoaded

      default Stream<BlockState> getBlockStatesIfLoaded(AABB p_46848_)
    • getBlockTint

      default int getBlockTint(BlockPos p_46836_, ColorResolver p_46837_)
      Specified by:
      getBlockTint in interface BlockAndTintGetter
    • getNoiseBiome

      default Biome getNoiseBiome(int p_46841_, int p_46842_, int p_46843_)
      Specified by:
      getNoiseBiome in interface BiomeManager.NoiseBiomeSource
    • getUncachedNoiseBiome

      Biome getUncachedNoiseBiome(int p_46809_, int p_46810_, int p_46811_)
    • isClientSide

      boolean isClientSide()
    • getSeaLevel

      @Deprecated int getSeaLevel()
      Deprecated.
    • dimensionType

      DimensionType dimensionType()
    • getMinBuildHeight

      default int getMinBuildHeight()
      Specified by:
      getMinBuildHeight in interface LevelHeightAccessor
    • getHeight

      default int getHeight()
      Specified by:
      getHeight in interface LevelHeightAccessor
    • getHeightmapPos

      default BlockPos getHeightmapPos(Heightmap.Types p_46830_, BlockPos p_46831_)
    • isEmptyBlock

      default boolean isEmptyBlock(BlockPos p_46860_)
    • canSeeSkyFromBelowWater

      default boolean canSeeSkyFromBelowWater(BlockPos p_46862_)
    • getBrightness

      @Deprecated default float getBrightness(BlockPos p_46864_)
      Deprecated.
    • getDirectSignal

      default int getDirectSignal(BlockPos p_46853_, Direction p_46854_)
    • getChunk

      default ChunkAccess getChunk(BlockPos p_46866_)
    • getChunk

      default ChunkAccess getChunk(int p_46807_, int p_46808_)
    • getChunk

      default ChunkAccess getChunk(int p_46820_, int p_46821_, ChunkStatus p_46822_)
    • getChunkForCollisions

      @Nullable default BlockGetter getChunkForCollisions(int p_46845_, int p_46846_)
      Specified by:
      getChunkForCollisions in interface CollisionGetter
    • isWaterAt

      default boolean isWaterAt(BlockPos p_46802_)
    • containsAnyLiquid

      default boolean containsAnyLiquid(AABB p_46856_)
    • getMaxLocalRawBrightness

      default int getMaxLocalRawBrightness(BlockPos p_46804_)
    • getMaxLocalRawBrightness

      default int getMaxLocalRawBrightness(BlockPos p_46850_, int p_46851_)
    • hasChunkAt

      @Deprecated default boolean hasChunkAt(int p_151578_, int p_151579_)
      Deprecated.
    • hasChunkAt

      @Deprecated default boolean hasChunkAt(BlockPos p_46806_)
      Deprecated.
    • isAreaLoaded

      default boolean isAreaLoaded(BlockPos center, int range)
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(BlockPos p_46833_, BlockPos p_46834_)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int p_46813_, int p_46814_, int p_46815_, int p_46816_, int p_46817_, int p_46818_)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int p_151573_, int p_151574_, int p_151575_, int p_151576_)
      Deprecated.