Interface LevelReader

All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, IBlockAndTintGetterExtension, IBlockGetterExtension, ILevelReaderExtension, 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 x, int z, ChunkStatus chunkStatus, boolean requireChunk)
    • hasChunk

      @Deprecated boolean hasChunk(int chunkX, int chunkZ)
      Deprecated.
    • getHeight

      int getHeight(Heightmap.Types heightmapType, int x, int z)
    • getSkyDarken

      int getSkyDarken()
    • getBiomeManager

      BiomeManager getBiomeManager()
    • getBiome

      default Holder<Biome> getBiome(BlockPos pos)
    • getBlockStatesIfLoaded

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

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

      default Holder<Biome> getNoiseBiome(int x, int y, int z)
      Gets the biome at the given quart positions. Note that the coordinates passed into this method are 1/4 the scale of block coordinates.
      Specified by:
      getNoiseBiome in interface BiomeManager.NoiseBiomeSource
    • getUncachedNoiseBiome

      Holder<Biome> getUncachedNoiseBiome(int x, int y, int z)
    • 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 heightmapType, BlockPos pos)
    • isEmptyBlock

      default boolean isEmptyBlock(BlockPos pos)
      Checks to see if an air block exists at the provided location. Note that this only checks to see if the blocks material is set to air, meaning it is possible for non-vanilla blocks to still pass this check.
    • canSeeSkyFromBelowWater

      default boolean canSeeSkyFromBelowWater(BlockPos pos)
    • getPathfindingCostFromLightLevels

      default float getPathfindingCostFromLightLevels(BlockPos pos)
    • getLightLevelDependentMagicValue

      @Deprecated default float getLightLevelDependentMagicValue(BlockPos pos)
      Deprecated.
    • getChunk

      default ChunkAccess getChunk(BlockPos pos)
    • getChunk

      default ChunkAccess getChunk(int chunkX, int chunkZ)
    • getChunk

      default ChunkAccess getChunk(int chunkX, int chunkZ, ChunkStatus chunkStatus)
    • getChunkForCollisions

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

      default boolean isWaterAt(BlockPos pos)
    • containsAnyLiquid

      default boolean containsAnyLiquid(AABB bb)
      Checks if any of the blocks within the aabb are liquids.
    • getMaxLocalRawBrightness

      default int getMaxLocalRawBrightness(BlockPos pos)
    • getMaxLocalRawBrightness

      default int getMaxLocalRawBrightness(BlockPos pos, int amount)
    • hasChunkAt

      @Deprecated default boolean hasChunkAt(int x, int z)
      Deprecated.
    • hasChunkAt

      @Deprecated default boolean hasChunkAt(BlockPos pos)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(BlockPos from, BlockPos to)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int fromX, int fromY, int fromZ, int toX, int toY, int toZ)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int fromX, int fromZ, int toX, int toZ)
      Deprecated.
    • registryAccess

      RegistryAccess registryAccess()
    • enabledFeatures

      FeatureFlagSet enabledFeatures()
    • holderLookup

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