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
containsAnyLiquid
(AABB pBb) Checks if any of the blocks within the aabb are liquids.default Stream
<BlockState> getBlockStatesIfLoaded
(AABB pAabb) default int
getBlockTint
(BlockPos pBlockPos, ColorResolver pColorResolver) default ChunkAccess
getChunk
(int pChunkX, int pChunkZ) default ChunkAccess
getChunk
(int pChunkX, int pChunkZ, ChunkStatus pChunkStatus) getChunk
(int pX, int pZ, ChunkStatus pChunkStatus, boolean pRequireChunk) default ChunkAccess
default BlockGetter
getChunkForCollisions
(int pChunkX, int pChunkZ) default int
int
getHeight
(Heightmap.Types pHeightmapType, int pX, int pZ) default BlockPos
getHeightmapPos
(Heightmap.Types pHeightmapType, BlockPos pPos) default float
Deprecated.default int
default int
getMaxLocalRawBrightness
(BlockPos pPos, int pAmount) default int
getNoiseBiome
(int pX, int pY, int pZ) Gets the biome at the given quart positions.default float
int
Deprecated.int
getUncachedNoiseBiome
(int pX, int pY, int pZ) boolean
hasChunk
(int pChunkX, int pChunkZ) Deprecated.default boolean
hasChunkAt
(int pX, int pZ) Deprecated.default boolean
hasChunkAt
(BlockPos pPos) Deprecated.default boolean
hasChunksAt
(int pFromX, int pFromZ, int pToX, int pToZ) Deprecated.default boolean
hasChunksAt
(int pFromX, int pFromY, int pFromZ, int pToX, int pToY, int pToZ) Deprecated.default boolean
hasChunksAt
(BlockPos pFrom, BlockPos pTo) Deprecated.default <T> HolderLookup
<T> holderLookup
(ResourceKey<? extends Registry<? extends T>> pRegistryKey) boolean
default boolean
isEmptyBlock
(BlockPos pPos) 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 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
-