Package net.minecraft.world.level
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
public interface LevelReader
extends BlockAndTintGetter, CollisionGetter, SignalGetter, BiomeManager.NoiseBiomeSource, ILevelReaderExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.BlockGetter
BlockGetter.BlockStepVisitor -
Field Summary
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleancontainsAnyLiquid(AABB pBb) Checks if any of the blocks within the aabb are liquids.default Stream<BlockState> getBlockStatesIfLoaded(AABB pAabb) default intgetBlockTint(BlockPos pBlockPos, ColorResolver pColorResolver) default ChunkAccessgetChunk(int pChunkX, int pChunkZ) default ChunkAccessgetChunk(int pChunkX, int pChunkZ, ChunkStatus pChunkStatus) getChunk(int pX, int pZ, ChunkStatus pChunkStatus, boolean pRequireChunk) default ChunkAccessdefault BlockGettergetChunkForCollisions(int pChunkX, int pChunkZ) default intintgetHeight(Heightmap.Types pHeightmapType, int pX, int pZ) default intgetHeight(Heightmap.Types pHeightmapType, BlockPos pPos) default BlockPosgetHeightmapPos(Heightmap.Types pHeightmapType, BlockPos pPos) default floatDeprecated.default intdefault intgetMaxLocalRawBrightness(BlockPos pPos, int pAmount) default intgetMinY()getNoiseBiome(int p_204163_, int p_204164_, int p_204165_) Gets the biome at the given quart positions.default floatintintgetUncachedNoiseBiome(int pX, int pY, int pZ) booleanhasChunk(int pChunkX, int pChunkZ) Deprecated.default booleanhasChunkAt(int pX, int pZ) Deprecated.default booleanhasChunkAt(BlockPos pPos) Deprecated.default booleanhasChunksAt(int pFromX, int pFromZ, int pToX, int pToZ) Deprecated.default booleanhasChunksAt(int pFromX, int pFromY, int pFromZ, int pToX, int pToY, int pToZ) Deprecated.default booleanhasChunksAt(BlockPos pFrom, BlockPos pTo) Deprecated.default <T> HolderLookup<T> holderLookup(ResourceKey<? extends Registry<? extends T>> pRegistryKey) booleandefault booleanisEmptyBlock(BlockPos pPos) Checks to see if an air block exists at the provided location.default booleanMethods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getPreMoveCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision, noCollisionMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShadeMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelDataMethods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoadedMethods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
getChunk
-
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
-
hasChunkAt
Deprecated. -
hasChunkAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
@Deprecated default boolean hasChunksAt(int pFromX, int pFromY, int pFromZ, int pToX, int pToY, int pToZ) Deprecated. -
hasChunksAt
Deprecated. -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-