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
,EmptyBlockAndTintGetter
,EmptyBlockGetter
,EmptyLevelChunk
,FallingBlockRenderState
,ImposterProtoChunk
,Level
,LevelChunk
,PathNavigationRegion
,ProtoChunk
,RenderChunkRegion
,ServerLevel
,WorldGenRegion
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addCollisionsAlongTravel
(it.unimi.dsi.fastutil.longs.LongSet p_404983_, Vec3 p_365197_, Vec3 p_362395_, AABB p_362649_, BlockGetter.BlockStepVisitor p_405208_) default BlockHitResult
clip
(ClipContext p_45548_) default BlockHitResult
clipWithInteractionOverride
(Vec3 p_45559_, Vec3 p_45560_, BlockPos p_45561_, VoxelShape p_45562_, BlockState p_45563_) static void
forEachBlockIntersectedBetween
(Vec3 p_405487_, Vec3 p_405072_, AABB p_405459_, BlockGetter.BlockStepVisitor p_405341_) 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 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, getMaxSectionY, getMaxY, getMinSectionY, getMinY, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isInsideBuildHeight, isOutsideBuildHeight, isOutsideBuildHeight
-
Field Details
-
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL
static final int MAX_BLOCK_ITERATIONS_ALONG_TRAVEL- See Also:
-
-
Method Details
-
getBlockEntity
-
getBlockEntity
default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos p_151367_, BlockEntityType<T> p_151368_) -
getBlockState
-
getFluidState
-
getLightEmission
-
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_) -
forEachBlockIntersectedBetween
static void forEachBlockIntersectedBetween(Vec3 p_405487_, Vec3 p_405072_, AABB p_405459_, BlockGetter.BlockStepVisitor p_405341_) -
addCollisionsAlongTravel
private static int addCollisionsAlongTravel(it.unimi.dsi.fastutil.longs.LongSet p_404983_, Vec3 p_365197_, Vec3 p_362395_, AABB p_362649_, BlockGetter.BlockStepVisitor p_405208_)
-