Interface LevelReader
- All Superinterfaces:
BiomeManager.NoiseBiomeSource, BlockAndLightGetter, BlockGetter, CollisionGetter, IBlockGetterExtension, ILevelReaderExtension, LevelHeightAccessor, SignalGetter
- All Known Subinterfaces:
CommonLevelAccessor, LevelAccessor, ServerLevelAccessor, WorldGenLevel
- All Known Implementing Classes:
ClientLevel, Level, ServerLevel, WorldGenRegion
public interface LevelReader
extends BlockAndLightGetter, 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) default Stream<BlockState> 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) 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) default booleanMethods inherited from interface BlockAndLightGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightnessMethods 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 IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, 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
-
getNoiseBiome
- 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
-
canSeeSkyFromBelowWater
-
getPathfindingCostFromLightLevels
-
getLightLevelDependentMagicValue
Deprecated. -
getChunk
-
getChunk
-
getChunk
-
getChunkForCollisions
- Specified by:
getChunkForCollisionsin interfaceCollisionGetter
-
isWaterAt
-
containsAnyLiquid
-
getMaxLocalRawBrightness
-
getMaxLocalRawBrightness
-
getEffectiveSkyBrightness
-
hasChunkAt
Deprecated. -
hasChunkAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
Deprecated. -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-
environmentAttributes
EnvironmentAttributeReader environmentAttributes()
-