public interface BlockView
Modifier and Type | Method and Description |
---|---|
BlockEntity |
getBlockEntity(BlockPos pos) |
BlockState |
getBlockState(BlockPos pos) |
FluidState |
getFluidState(BlockPos pos) |
default int |
getHeight() |
default int |
getLuminance(BlockPos pos) |
default int |
getMaxLightLevel() |
default BlockHitResult |
rayTrace(RayTraceContext context) |
static <T> T |
rayTrace(RayTraceContext rayTraceContext,
BiFunction<RayTraceContext,BlockPos,T> context,
Function<RayTraceContext,T> blockRaytracer) |
default BlockHitResult |
rayTraceBlock(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 BlockHitResult rayTrace(RayTraceContext context)
@Nullable default BlockHitResult rayTraceBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)
static <T> T rayTrace(RayTraceContext rayTraceContext, BiFunction<RayTraceContext,BlockPos,T> context, Function<RayTraceContext,T> blockRaytracer)