Interface LevelReader
- All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndTintGetter, BlockGetter, CollisionGetter, IBlockAndTintGetterExtension, IBlockGetterExtension, ILevelReaderExtension, LevelHeightAccessor, SignalGetter
- All Known Subinterfaces:
CommonLevelAccessor, LevelAccessor, ServerLevelAccessor, WorldGenLevel
- All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion
public interface LevelReader
extends BlockAndTintGetter, CollisionGetter, SignalGetter, BiomeManager.NoiseBiomeSource, ILevelReaderExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
Fields inherited from interface SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleancontainsAnyLiquid(AABB box) Checks if any of the blocks within the aabb are liquids.default Stream<BlockState> default intgetBlockTint(BlockPos pos, ColorResolver resolver) default ChunkAccessgetChunk(int chunkX, int chunkZ) default ChunkAccessgetChunk(int chunkX, int chunkZ, ChunkStatus status) @Nullable ChunkAccessgetChunk(int chunkX, int chunkZ, ChunkStatus targetStatus, boolean loadOrGenerate) default ChunkAccessdefault @Nullable BlockGettergetChunkForCollisions(int chunkX, int chunkZ) default intdefault intintgetHeight(Heightmap.Types type, int x, int z) default intgetHeight(Heightmap.Types type, BlockPos pos) default BlockPosgetHeightmapPos(Heightmap.Types type, BlockPos pos) default floatDeprecated.default intdefault intgetMaxLocalRawBrightness(BlockPos pos, int skyDarkening) default intgetMinY()getNoiseBiome(int quartX, int quartY, int quartZ) Gets the biome at the given quart positions.default floatintintgetUncachedNoiseBiome(int quartX, int quartY, int quartZ) booleanhasChunk(int chunkX, int chunkZ) Deprecated.default booleanhasChunkAt(int blockX, int blockZ) Deprecated.default booleanhasChunkAt(BlockPos pos) Deprecated.default booleanhasChunksAt(int x0, int z0, int x1, int z1) Deprecated.default booleanhasChunksAt(int x0, int y0, int z0, int x1, int y1, int z1) Deprecated.default booleanhasChunksAt(BlockPos pos0, BlockPos pos1) Deprecated.default <T> HolderLookup<T> holderLookup(ResourceKey<? extends Registry<? extends T>> key) booleandefault booleanisEmptyBlock(BlockPos pos) Checks to see if an air block exists at the provided location.default booleanMethods inherited from interface BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noBlockCollision, noBorderCollision, noCollision, noCollision, noCollision, noCollision, noEntityCollisionMethods inherited from interface IBlockAndTintGetterExtension
getShadeMethods inherited from interface IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
getChunk
@Nullable ChunkAccess getChunk(int chunkX, int chunkZ, ChunkStatus targetStatus, boolean loadOrGenerate) -
hasChunk
Deprecated. -
getHeight
-
getHeight
-
getSkyDarken
int getSkyDarken() -
getBiomeManager
BiomeManager getBiomeManager() -
getBiome
-
getBlockStatesIfLoaded
-
getBlockTint
- Specified by:
getBlockTintin interfaceBlockAndTintGetter
-
getNoiseBiome
Description copied from interface:BiomeManager.NoiseBiomeSourceGets 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:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource
-
getUncachedNoiseBiome
-
isClientSide
boolean isClientSide() -
getSeaLevel
int getSeaLevel() -
dimensionType
DimensionType dimensionType() -
getMinY
default int getMinY()- Specified by:
getMinYin interfaceLevelHeightAccessor
-
getHeight
default int getHeight()- Specified by:
getHeightin interfaceLevelHeightAccessor
-
getHeightmapPos
-
isEmptyBlock
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
-
getPathfindingCostFromLightLevels
-
getLightLevelDependentMagicValue
Deprecated. -
getChunk
-
getChunk
-
getChunk
-
getChunkForCollisions
- Specified by:
getChunkForCollisionsin interfaceCollisionGetter
-
isWaterAt
-
containsAnyLiquid
Checks if any of the blocks within the aabb are liquids. -
getMaxLocalRawBrightness
-
getMaxLocalRawBrightness
-
getEffectiveSkyBrightness
-
hasChunkAt
Deprecated. -
hasChunkAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
Deprecated. -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-
environmentAttributes
EnvironmentAttributeReader environmentAttributes()
-