Package net.minecraft.world.level
Interface CommonLevelAccessor
- All Superinterfaces:
BiomeManager.NoiseBiomeSource,BlockAndTintGetter,BlockGetter,CollisionGetter,EntityGetter,IBlockAndTintGetterExtension,IBlockGetterExtension,ILevelReaderExtension,LevelHeightAccessor,LevelReader,LevelSimulatedReader,LevelSimulatedRW,LevelWriter,SignalGetter
- All Known Subinterfaces:
LevelAccessor,ServerLevelAccessor,WorldGenLevel
- All Known Implementing Classes:
ClientLevel,Level,ServerLevel,WorldGenRegion
-
Field Summary
Fields inherited from interface net.minecraft.world.level.SignalGetter
DIRECTIONS -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends BlockEntity>
Optional<T> getBlockEntity(BlockPos pPos, BlockEntityType<T> pBlockEntityType) default List<VoxelShape> getEntityCollisions(Entity pEntity, AABB pCollisionBox) default BlockPosgetHeightmapPos(Heightmap.Types pHeightmapType, BlockPos pPos) default booleanisUnobstructed(Entity pEntity, VoxelShape pShape) Methods inherited from interface net.minecraft.world.level.BlockAndTintGetter
canSeeSky, getBrightness, getLightEngine, getRawBrightness, getShadeMethods inherited from interface net.minecraft.world.level.BlockGetter
clip, clipWithInteractionOverride, getBlockEntity, getBlockFloorHeight, getBlockFloorHeight, getBlockState, getBlockStates, getFluidState, getLightEmission, getMaxLightLevel, isBlockInLineMethods inherited from interface net.minecraft.world.level.CollisionGetter
collidesWithSuffocatingBlock, findFreePosition, findSupportingBlock, getBlockCollisions, getCollisions, getWorldBorder, isUnobstructed, isUnobstructed, noBlockCollision, noCollision, noCollision, noCollisionMethods 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, playersMethods 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.LevelReader
canSeeSkyFromBelowWater, containsAnyLiquid, dimensionType, enabledFeatures, getBiome, getBiomeManager, getBlockStatesIfLoaded, getBlockTint, getChunk, getChunk, getChunk, getChunk, getChunkForCollisions, getHeight, getHeight, getLightLevelDependentMagicValue, getMaxLocalRawBrightness, getMaxLocalRawBrightness, getMinBuildHeight, getNoiseBiome, getPathfindingCostFromLightLevels, getSeaLevel, getSkyDarken, getUncachedNoiseBiome, hasChunk, hasChunkAt, hasChunkAt, hasChunksAt, hasChunksAt, hasChunksAt, holderLookup, isClientSide, isEmptyBlock, isWaterAt, registryAccessMethods inherited from interface net.minecraft.world.level.LevelSimulatedReader
isFluidAtPosition, isStateAtPositionMethods inherited from interface net.minecraft.world.level.LevelWriter
addFreshEntity, destroyBlock, destroyBlock, destroyBlock, removeBlock, setBlock, setBlockMethods inherited from interface net.minecraft.world.level.SignalGetter
getBestNeighborSignal, getControlInputSignal, getDirectSignal, getDirectSignalTo, getSignal, hasNeighborSignal, hasSignal
-
Method Details
-
getBlockEntity
default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos pPos, BlockEntityType<T> pBlockEntityType) - Specified by:
getBlockEntityin interfaceBlockGetter- Specified by:
getBlockEntityin interfaceLevelSimulatedReader
-
getEntityCollisions
- Specified by:
getEntityCollisionsin interfaceCollisionGetter- Specified by:
getEntityCollisionsin interfaceEntityGetter
-
isUnobstructed
- Specified by:
isUnobstructedin interfaceCollisionGetter- Specified by:
isUnobstructedin interfaceEntityGetter
-
getHeightmapPos
- Specified by:
getHeightmapPosin interfaceLevelReader- Specified by:
getHeightmapPosin interfaceLevelSimulatedReader
-