Interface LevelReader

All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, IForgeBlockAndTintGetter, IForgeBlockGetter, LevelHeightAccessor, SignalGetter
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_333298_, 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 Holder<Biome> getBiome(BlockPos p_204167_)
    • 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 Holder<Biome> getNoiseBiome(int p_204163_, int p_204164_, int p_204165_)
      Specified by:
      getNoiseBiome in interface BiomeManager.NoiseBiomeSource
    • getUncachedNoiseBiome

      Holder<Biome> getUncachedNoiseBiome(int p_204159_, int p_204160_, int p_204161_)
    • 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_)
    • getPathfindingCostFromLightLevels

      default float getPathfindingCostFromLightLevels(BlockPos p_220420_)
    • getLightLevelDependentMagicValue

      @Deprecated default float getLightLevelDependentMagicValue(BlockPos p_220418_)
      Deprecated.
    • 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_331751_)
    • 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_)
    • isAreaLoaded

      @Deprecated default boolean isAreaLoaded(BlockPos center, int range)
      Deprecated.
    • hasChunkAt

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

      @Deprecated default boolean hasChunkAt(BlockPos p_46806_)
      Deprecated.
    • 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.
    • registryAccess

      RegistryAccess registryAccess()
    • enabledFeatures

      FeatureFlagSet enabledFeatures()
    • holderLookup

      default <T> HolderLookup<T> holderLookup(ResourceKey<? extends Registry<? extends T>> p_249578_)