接口 BlockGetter
- 所有超级接口:
IForgeBlockGetter
,LevelHeightAccessor
- 所有已知子接口:
BlockAndTintGetter
,CollisionGetter
,CommonLevelAccessor
,LevelAccessor
,LevelReader
,LevelTimeAccess
,LightChunk
,ServerLevelAccessor
,SignalGetter
,WorldGenLevel
- 所有已知实现类:
ChunkAccess
,ClientLevel
,EmptyBlockGetter
,EmptyLevelChunk
,ImposterProtoChunk
,Level
,LevelChunk
,PathNavigationRegion
,ProtoChunk
,RenderChunkRegion
,ServerLevel
,WorldGenRegion
-
方法概要
修饰符和类型方法说明default BlockHitResult
clip
(ClipContext pContext) default BlockHitResult
clipWithInteractionOverride
(Vec3 pStartVec, Vec3 pEndVec, BlockPos pPos, VoxelShape pShape, BlockState pState) getBlockEntity
(BlockPos pPos) default <T extends BlockEntity>
Optional<T>getBlockEntity
(BlockPos pPos, BlockEntityType<T> pBlockEntityType) default double
getBlockFloorHeight
(BlockPos pPos) default double
getBlockFloorHeight
(VoxelShape pShape, Supplier<VoxelShape> pBelowShapeSupplier) getBlockState
(BlockPos p_45571_) default Stream<BlockState>
getBlockStates
(AABB pArea) getFluidState
(BlockPos pPos) default int
getLightEmission
(BlockPos pPos) default int
default BlockHitResult
isBlockInLine
(ClipBlockStateContext pContext) static <T,
C> T traverseBlocks
(Vec3 pFrom, Vec3 pTo, C pContext, BiFunction<C, BlockPos, T> pTester, Function<C, T> pOnFail) 从接口继承的方法 net.minecraftforge.common.extensions.IForgeBlockGetter
getExistingBlockEntity, getModelDataManager
从接口继承的方法 net.minecraft.world.level.LevelHeightAccessor
getHeight, getMaxBuildHeight, getMaxSection, getMinBuildHeight, getMinSection, getSectionIndex, getSectionIndexFromSectionY, getSectionsCount, getSectionYFromSectionIndex, isOutsideBuildHeight, isOutsideBuildHeight
-
方法详细资料
-
getBlockEntity
-
getBlockEntity
default <T extends BlockEntity> Optional<T> getBlockEntity(BlockPos pPos, BlockEntityType<T> pBlockEntityType) -
getBlockState
-
getFluidState
-
getLightEmission
-
getMaxLightLevel
default int getMaxLightLevel() -
getBlockStates
-
isBlockInLine
-
clip
-
clipWithInteractionOverride
@Nullable default BlockHitResult clipWithInteractionOverride(Vec3 pStartVec, Vec3 pEndVec, BlockPos pPos, VoxelShape pShape, BlockState pState) -
getBlockFloorHeight
-
getBlockFloorHeight
-
traverseBlocks
static <T,C> T traverseBlocks(Vec3 pFrom, Vec3 pTo, C pContext, BiFunction<C, BlockPos, T> pTester, Function<C, T> pOnFail)
-