Package net.minecraft.world.level
Interface BlockGetter
- All Superinterfaces:
LevelHeightAccessor
- All Known Subinterfaces:
BlockAndTintGetter,ChunkAccess,CollisionGetter,CommonLevelAccessor,LevelAccessor,LevelReader,LevelTimeAccess,ServerLevelAccessor,WorldGenLevel
- All Known Implementing Classes:
ClientLevel,EmptyBlockGetter,EmptyLevelChunk,ImposterProtoChunk,Level,LevelChunk,PathNavigationRegion,ProtoChunk,RenderChunkRegion,ServerLevel,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptiondefault BlockHitResultclip(ClipContext p_45548_)default BlockHitResultclipWithInteractionOverride(Vec3 p_45559_, Vec3 p_45560_, BlockPos p_45561_, VoxelShape p_45562_, BlockState p_45563_)getBlockEntity(BlockPos p_45570_)default <T extends BlockEntity>
Optional<T>getBlockEntity(BlockPos p_151367_, BlockEntityType<T> p_151368_)default doublegetBlockFloorHeight(BlockPos p_45574_)default doublegetBlockFloorHeight(VoxelShape p_45565_, Supplier<VoxelShape> p_45566_)getBlockState(BlockPos p_45571_)default Stream<BlockState>getBlockStates(AABB p_45557_)getFluidState(BlockPos p_45569_)default intgetLightEmission(BlockPos p_45572_)default intdefault BlockHitResultisBlockInLine(ClipBlockStateContext p_151354_)static <T, C> TtraverseBlocks(Vec3 p_151362_, Vec3 p_151363_, C p_151364_, BiFunction<C,BlockPos,T> p_151365_, Function<C,T> p_151366_)Methods inherited from interface net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
Method Details
-
getBlockEntity
-
getBlockEntity
default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos p_151367_, BlockEntityType<T> p_151368_) -
getBlockState
-
getFluidState
-
getLightEmission
-
getMaxLightLevel
default int getMaxLightLevel() -
getBlockStates
-
isBlockInLine
-
clip
-
clipWithInteractionOverride
@Nullable default BlockHitResult clipWithInteractionOverride(Vec3 p_45559_, Vec3 p_45560_, BlockPos p_45561_, VoxelShape p_45562_, BlockState p_45563_) -
getBlockFloorHeight
-
getBlockFloorHeight
-
traverseBlocks
static <T, C> T traverseBlocks(Vec3 p_151362_, Vec3 p_151363_, C p_151364_, BiFunction<C,BlockPos,T> p_151365_, Function<C,T> p_151366_)
-