public interface BlockView
Modifier and Type | Method and Description |
---|---|
BlockEntity |
getBlockEntity(BlockPos pos) |
BlockState |
getBlockState(BlockPos pos) |
default double |
getDismountHeight(BlockPos pos) |
default double |
getDismountHeight(VoxelShape blockCollisionShape,
Supplier<VoxelShape> belowBlockCollisionShapeGetter) |
FluidState |
getFluidState(BlockPos pos) |
default int |
getHeight() |
default int |
getLuminance(BlockPos pos) |
default int |
getMaxLightLevel() |
default Stream<BlockState> |
method_29546(Box box) |
default BlockHitResult |
raycast(RaycastContext context) |
static <T> T |
raycast(RaycastContext raycastContext,
BiFunction<RaycastContext,BlockPos,T> context,
Function<RaycastContext,T> blockRaycaster) |
default BlockHitResult |
raycastBlock(Vec3d start,
Vec3d end,
BlockPos pos,
VoxelShape shape,
BlockState state) |
@Nullable BlockEntity getBlockEntity(BlockPos pos)
BlockState getBlockState(BlockPos pos)
FluidState getFluidState(BlockPos pos)
default int getLuminance(BlockPos pos)
default int getMaxLightLevel()
default int getHeight()
default Stream<BlockState> method_29546(Box box)
default BlockHitResult raycast(RaycastContext context)
@Nullable default BlockHitResult raycastBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)
default double getDismountHeight(VoxelShape blockCollisionShape, Supplier<VoxelShape> belowBlockCollisionShapeGetter)
default double getDismountHeight(BlockPos pos)
static <T> T raycast(RaycastContext raycastContext, BiFunction<RaycastContext,BlockPos,T> context, Function<RaycastContext,T> blockRaycaster)