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 pX, int pZ, ChunkStatus pChunkStatus, boolean pRequireChunk)
    • hasChunk

      @Deprecated boolean hasChunk(int pChunkX, int pChunkZ)
      Deprecated.
    • getHeight

      int getHeight(Heightmap.Types pHeightmapType, int pX, int pZ)
    • getSkyDarken

      int getSkyDarken()
    • getBiomeManager

      BiomeManager getBiomeManager()
    • getBiome

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

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

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

      default Holder<Biome> getNoiseBiome(int pX, int pY, int pZ)
      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 pX, int pY, int pZ)
    • 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 pHeightmapType, BlockPos pPos)
    • isEmptyBlock

      default boolean isEmptyBlock(BlockPos pPos)
      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 pPos)
    • getPathfindingCostFromLightLevels

      default float getPathfindingCostFromLightLevels(BlockPos pPos)
    • getLightLevelDependentMagicValue

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

      default ChunkAccess getChunk(BlockPos pPos)
    • getChunk

      default ChunkAccess getChunk(int pChunkX, int pChunkZ)
    • getChunk

      default ChunkAccess getChunk(int pChunkX, int pChunkZ, ChunkStatus pChunkStatus)
    • getChunkForCollisions

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

      default boolean isWaterAt(BlockPos pPos)
    • containsAnyLiquid

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

      default int getMaxLocalRawBrightness(BlockPos pPos)
    • getMaxLocalRawBrightness

      default int getMaxLocalRawBrightness(BlockPos pPos, int pAmount)
    • hasChunkAt

      @Deprecated default boolean hasChunkAt(int pX, int pZ)
      Deprecated.
    • hasChunkAt

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

      @Deprecated default boolean hasChunksAt(BlockPos pFrom, BlockPos pTo)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int pFromX, int pFromY, int pFromZ, int pToX, int pToY, int pToZ)
      Deprecated.
    • hasChunksAt

      @Deprecated default boolean hasChunksAt(int pFromX, int pFromZ, int pToX, int pToZ)
      Deprecated.
    • registryAccess

      RegistryAccess registryAccess()
    • enabledFeatures

      FeatureFlagSet enabledFeatures()
    • holderLookup

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