Package net.minecraft.world.level
Interface CommonLevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource
,BlockAndTintGetter
,BlockGetter
,CollisionGetter
,EntityGetter
,LevelHeightAccessor
,LevelReader
,LevelSimulatedReader
,LevelSimulatedRW
,LevelWriter
- All Known Subinterfaces:
LevelAccessor
,ServerLevelAccessor
,WorldGenLevel
- All Known Implementing Classes:
ClientLevel
,Level
,ServerLevel
,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ResourceKey<Biome>>
getBiomeName(BlockPos p_45838_)
default <T extends BlockEntity>
Optional<T>getBlockEntity(BlockPos p_151452_, BlockEntityType<T> p_151453_)
default Stream<VoxelShape>
getEntityCollisions(Entity p_45834_, AABB p_45835_, Predicate<Entity> p_45836_)
default BlockPos
getHeightmapPos(Heightmap.Types p_45831_, BlockPos p_45832_)
default boolean
isUnobstructed(Entity p_45828_, VoxelShape p_45829_)
Methods inherited from interface net.minecraft.world.level.biome.BiomeManager.NoiseBiomeSource
getPrimaryBiome
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, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLine
Methods inherited from interface net.minecraft.world.level.CollisionGetter
findFreePosition, getBlockCollisions, getBlockCollisions, getCollisions, getWorldBorder, hasBlockCollision, isUnobstructed, isUnobstructed, noCollision, noCollision, noCollision, noCollision
Methods inherited from interface net.minecraft.world.level.EntityGetter
getEntities, getEntities, getEntities, getEntitiesOfClass, getEntitiesOfClass, getNearbyEntities, getNearbyPlayers, getNearestEntity, getNearestEntity, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getNearestPlayer, getPlayerByUUID, hasNearbyAlivePlayer, players
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.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getBrightness, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getDirectSignal, getHeight, getHeight, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunk, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, isAreaLoaded, isClientSide, isEmptyBlock, isWaterAt
Methods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPosition
Methods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlock
-
Method Details
-
getBlockEntity
default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos p_151452_, BlockEntityType<T> p_151453_)- Specified by:
getBlockEntity
in interfaceBlockGetter
- Specified by:
getBlockEntity
in interfaceLevelSimulatedReader
-
getEntityCollisions
default Stream<VoxelShape> getEntityCollisions(@Nullable Entity p_45834_, AABB p_45835_, Predicate<Entity> p_45836_)- Specified by:
getEntityCollisions
in interfaceCollisionGetter
- Specified by:
getEntityCollisions
in interfaceEntityGetter
-
isUnobstructed
- Specified by:
isUnobstructed
in interfaceCollisionGetter
- Specified by:
isUnobstructed
in interfaceEntityGetter
-
getHeightmapPos
- Specified by:
getHeightmapPos
in interfaceLevelReader
- Specified by:
getHeightmapPos
in interfaceLevelSimulatedReader
-
registryAccess
RegistryAccess registryAccess() -
getBiomeName
-