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 boolean
default boolean
Checks if any of the blocks within the aabb are liquids.default Stream
<BlockState> getBlockStatesIfLoaded
(AABB aabb) default int
getBlockTint
(BlockPos blockPos, ColorResolver colorResolver) default ChunkAccess
getChunk
(int chunkX, int chunkZ) default ChunkAccess
getChunk
(int chunkX, int chunkZ, ChunkStatus chunkStatus) getChunk
(int x, int z, ChunkStatus chunkStatus, boolean requireChunk) default ChunkAccess
default BlockGetter
getChunkForCollisions
(int chunkX, int chunkZ) default int
int
getHeight
(Heightmap.Types heightmapType, int x, int z) default BlockPos
getHeightmapPos
(Heightmap.Types heightmapType, BlockPos pos) default float
Deprecated.default int
default int
getMaxLocalRawBrightness
(BlockPos pos, int amount) default int
getNoiseBiome
(int x, int y, int z) Gets the biome at the given quart positions.default float
int
Deprecated.int
getUncachedNoiseBiome
(int x, int y, int z) boolean
hasChunk
(int chunkX, int chunkZ) Deprecated.default boolean
hasChunkAt
(int x, int z) Deprecated.default boolean
hasChunkAt
(BlockPos pos) Deprecated.default boolean
hasChunksAt
(int fromX, int fromZ, int toX, int toZ) Deprecated.default boolean
hasChunksAt
(int fromX, int fromY, int fromZ, int toX, int toY, int toZ) Deprecated.default boolean
hasChunksAt
(BlockPos from, BlockPos to) Deprecated.default <T> HolderLookup
<T> holderLookup
(ResourceKey<? extends Registry<? extends T>> registryKey) boolean
default boolean
isEmptyBlock
(BlockPos pos) Checks to see if an air block exists at the provided location.default boolean
Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShade
Methods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockAndTintGetterExtension
getShade
Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
Methods inherited from interface net.neoforged.neoforge.common.extensions.ILevelReaderExtension
holder, holderOrThrow, isAreaLoaded
Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getMaxBuildHeight, getMaxSection, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
Methods 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:
getBlockTint
in 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:
getNoiseBiome
in interfaceBiomeManager.NoiseBiomeSource
-
getUncachedNoiseBiome
-
isClientSide
boolean isClientSide() -
getSeaLevel
Deprecated. -
dimensionType
DimensionType dimensionType() -
getMinBuildHeight
default int getMinBuildHeight()- Specified by:
getMinBuildHeight
in interfaceLevelHeightAccessor
-
getHeight
default int getHeight()- Specified by:
getHeight
in 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:
getChunkForCollisions
in 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
-