Package net.minecraft.world.level
Interface BlockGetter
- All Superinterfaces:
IBlockGetterExtension
,LevelHeightAccessor
- All Known Subinterfaces:
BlockAndTintGetter
,CollisionGetter
,CommonLevelAccessor
,LevelAccessor
,LevelReader
,LevelTimeAccess
,LightChunk
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
- All Known Implementing Classes:
ChunkAccess
,ClientLevel
,EmptyBlockGetter
,EmptyLevelChunk
,ImposterProtoChunk
,Level
,LevelChunk
,PathNavigationRegion
,ProtoChunk
,RenderChunkRegion
,ServerLevel
,WorldGenRegion
-
Method Summary
Modifier and TypeMethodDescriptiondefault BlockHitResult
clip
(ClipContext p_45548_) default BlockHitResult
clipWithInteractionOverride
(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 double
getBlockFloorHeight
(BlockPos p_45574_) default double
getBlockFloorHeight
(VoxelShape p_45565_, Supplier<VoxelShape> p_45566_) getBlockState
(BlockPos p_45571_) default Stream
<BlockState> getBlockStates
(AABB p_45557_) getFluidState
(BlockPos p_45569_) default int
getLightEmission
(BlockPos p_45572_) default int
default BlockHitResult
isBlockInLine
(ClipBlockStateContext p_151354_) 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_) Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockGetterExtension
getAuxLightManager, getAuxLightManager, getModelData
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_)
-