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
-
Field Summary
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanChecks if any of the blocks within the aabb are liquids.default Stream<BlockState> getBlockStatesIfLoaded(AABB aabb) default intgetBlockTint(BlockPos blockPos, ColorResolver colorResolver) default ChunkAccessgetChunk(int chunkX, int chunkZ) default ChunkAccessgetChunk(int chunkX, int chunkZ, ChunkStatus chunkStatus) getChunk(int x, int z, ChunkStatus chunkStatus, boolean requireChunk) default ChunkAccessdefault BlockGettergetChunkForCollisions(int chunkX, int chunkZ) default intintgetHeight(Heightmap.Types heightmapType, int x, int z) default BlockPosgetHeightmapPos(Heightmap.Types heightmapType, BlockPos pos) default floatDeprecated.default intdefault intgetMaxLocalRawBrightness(BlockPos pos, int amount) default intgetNoiseBiome(int x, int y, int z) Gets the biome at the given quart positions.default floatintDeprecated.intgetUncachedNoiseBiome(int x, int y, int z) booleanhasChunk(int chunkX, int chunkZ) Deprecated.default booleanhasChunkAt(int x, int z) Deprecated.default booleanhasChunkAt(BlockPos pos) Deprecated.default booleanhasChunksAt(int fromX, int fromZ, int toX, int toZ) Deprecated.default booleanhasChunksAt(int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Deprecated.default booleanhasChunksAt(BlockPos from, BlockPos to) Deprecated.default <T> HolderLookup<T> holderLookup(ResourceKey<? extends Registry<? extends T>> registryKey) booleandefault booleanisEmptyBlock(BlockPos pos) 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, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, 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
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeightMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
getChunk
-
hasChunk
Deprecated. -
getHeight
-
getSkyDarken
int getSkyDarken() -
getBiomeManager
BiomeManager getBiomeManager() -
getBiome
-
getBlockStatesIfLoaded
-
getBlockTint
- Specified by:
getBlockTintin interfaceBlockAndTintGetter
-
getNoiseBiome
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:
getNoiseBiomein interfaceBiomeManager.NoiseBiomeSource
-
getUncachedNoiseBiome
-
isClientSide
boolean isClientSide() -
getSeaLevel
Deprecated. -
dimensionType
DimensionType dimensionType() -
getMinBuildHeight
default int getMinBuildHeight()- Specified by:
getMinBuildHeightin 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. -
hasChunksAt
Deprecated. -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-