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 Link icon

    • getChunk Link icon

      @Nullable ChunkAccess getChunk(int p_46823_, int p_46824_, ChunkStatus p_333298_, boolean p_46826_)
    • hasChunk Link icon

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

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

      int getSkyDarken()
    • getBiomeManager Link icon

      BiomeManager getBiomeManager()
    • getBiome Link icon

      default Holder<Biome> getBiome(BlockPos p_204167_)
    • getBlockStatesIfLoaded Link icon

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

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

      default Holder<Biome> getNoiseBiome(int p_204163_, int p_204164_, int p_204165_)
      Specified by:
      getNoiseBiome in interface BiomeManager.NoiseBiomeSource
    • getUncachedNoiseBiome Link icon

      Holder<Biome> getUncachedNoiseBiome(int p_204159_, int p_204160_, int p_204161_)
    • isClientSide Link icon

      boolean isClientSide()
    • getSeaLevel Link icon

      @Deprecated int getSeaLevel()
      Deprecated.
    • dimensionType Link icon

      DimensionType dimensionType()
    • getMinBuildHeight Link icon

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

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

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

      default boolean isEmptyBlock(BlockPos p_46860_)
    • canSeeSkyFromBelowWater Link icon

      default boolean canSeeSkyFromBelowWater(BlockPos p_46862_)
    • getPathfindingCostFromLightLevels Link icon

      default float getPathfindingCostFromLightLevels(BlockPos p_220420_)
    • getLightLevelDependentMagicValue Link icon

      @Deprecated default float getLightLevelDependentMagicValue(BlockPos p_220418_)
      Deprecated.
    • getChunk Link icon

      default ChunkAccess getChunk(BlockPos p_46866_)
    • getChunk Link icon

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

      default ChunkAccess getChunk(int p_46820_, int p_46821_, ChunkStatus p_331751_)
    • getChunkForCollisions Link icon

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

      default boolean isWaterAt(BlockPos p_46802_)
    • containsAnyLiquid Link icon

      default boolean containsAnyLiquid(AABB p_46856_)
    • getMaxLocalRawBrightness Link icon

      default int getMaxLocalRawBrightness(BlockPos p_46804_)
    • getMaxLocalRawBrightness Link icon

      default int getMaxLocalRawBrightness(BlockPos p_46850_, int p_46851_)
    • isAreaLoaded Link icon

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

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

      @Deprecated default boolean hasChunkAt(BlockPos p_46806_)
      Deprecated.
    • hasChunksAt Link icon

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

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

      @Deprecated default boolean hasChunksAt(int p_151573_, int p_151574_, int p_151575_, int p_151576_)
      Deprecated.
    • registryAccess Link icon

      RegistryAccess registryAccess()
    • enabledFeatures Link icon

      FeatureFlagSet enabledFeatures()
    • holderLookup Link icon

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