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.BlockGetter
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canSeeSkyFromBelowWater
(BlockPos p_46862_) default boolean
containsAnyLiquid
(AABB p_46856_) default Stream
<BlockState> getBlockStatesIfLoaded
(AABB p_46848_) default int
getBlockTint
(BlockPos p_46836_, ColorResolver p_46837_) default ChunkAccess
getChunk
(int p_46807_, int p_46808_) default ChunkAccess
getChunk
(int p_46820_, int p_46821_, ChunkStatus p_332007_) getChunk
(int p_46823_, int p_46824_, ChunkStatus p_330944_, boolean p_46826_) default ChunkAccess
default BlockGetter
getChunkForCollisions
(int p_46845_, int p_46846_) default int
int
getHeight
(Heightmap.Types p_46827_, int p_46828_, int p_46829_) default int
getHeight
(Heightmap.Types p_401234_, BlockPos p_401043_) default BlockPos
getHeightmapPos
(Heightmap.Types p_46830_, BlockPos p_46831_) default float
getLightLevelDependentMagicValue
(BlockPos p_220418_) Deprecated.default int
getMaxLocalRawBrightness
(BlockPos p_46804_) default int
getMaxLocalRawBrightness
(BlockPos p_46850_, int p_46851_) default int
getMinY()
getNoiseBiome
(int p_204163_, int p_204164_, int p_204165_) default float
getPathfindingCostFromLightLevels
(BlockPos p_220420_) int
int
getUncachedNoiseBiome
(int p_204159_, int p_204160_, int p_204161_) boolean
hasChunk
(int p_46838_, int p_46839_) Deprecated.default boolean
hasChunkAt
(int p_151578_, int p_151579_) Deprecated.default boolean
hasChunkAt
(BlockPos p_46806_) Deprecated.default boolean
hasChunksAt
(int p_151573_, int p_151574_, int p_151575_, int p_151576_) Deprecated.default boolean
hasChunksAt
(int p_46813_, int p_46814_, int p_46815_, int p_46816_, int p_46817_, int p_46818_) Deprecated.default boolean
hasChunksAt
(BlockPos p_46833_, BlockPos p_46834_) Deprecated.default <T> HolderLookup
<T> holderLookup
(ResourceKey<? extends Registry<? extends T>> p_249578_) boolean
default boolean
isEmptyBlock
(BlockPos p_46860_) 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, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
clipIncludingBorder, collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockAndLiquidCollisions, getBlockCollisions, getCollisions, getEntityCollisions, getWorldBorder, isUnobstructed, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, 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
getMaxSectionY, getMaxY, getMinSectionY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
Methods 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:
getBlockTint
in interfaceBlockAndTintGetter
-
getNoiseBiome
- Specified by:
getNoiseBiome
in interfaceBiomeManager.NoiseBiomeSource
-
getUncachedNoiseBiome
-
isClientSide
boolean isClientSide() -
getSeaLevel
int getSeaLevel() -
dimensionType
DimensionType dimensionType() -
getMinY
default int getMinY()- Specified by:
getMinY
in interfaceLevelHeightAccessor
-
getHeight
default int getHeight()- Specified by:
getHeight
in interfaceLevelHeightAccessor
-
getHeightmapPos
-
isEmptyBlock
-
canSeeSkyFromBelowWater
-
getPathfindingCostFromLightLevels
-
getLightLevelDependentMagicValue
Deprecated. -
getChunk
-
getChunk
-
getChunk
-
getChunkForCollisions
- Specified by:
getChunkForCollisions
in interfaceCollisionGetter
-
isWaterAt
-
containsAnyLiquid
-
getMaxLocalRawBrightness
-
getMaxLocalRawBrightness
-
hasChunkAt
Deprecated. -
hasChunkAt
Deprecated. -
hasChunksAt
Deprecated. -
hasChunksAt
@Deprecated default boolean hasChunksAt(int p_46813_, int p_46814_, int p_46815_, int p_46816_, int p_46817_, int p_46818_) Deprecated. -
hasChunksAt
Deprecated. -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
holderLookup
-