public class RaytraceBlock extends Raytrace
| Constructor and Description |
|---|
RaytraceBlock(net.minecraft.world.World world,
Point src,
Point dest,
net.minecraft.util.math.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
Point src,
Vector v,
net.minecraft.util.math.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
Ray ray,
net.minecraft.util.math.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
net.minecraft.util.math.Vec3d src,
net.minecraft.util.math.Vec3d dest,
net.minecraft.util.math.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.RayTraceResult |
trace()
Does the raytracing.
|
net.minecraft.world.World |
world()
Get the world used by this
RaytraceBlock. |
public RaytraceBlock(net.minecraft.world.World world,
Ray ray,
net.minecraft.util.math.BlockPos pos)
RaytraceBlock.world - the worldray - the raypos - the pospublic RaytraceBlock(net.minecraft.world.World world,
Point src,
Vector v,
net.minecraft.util.math.BlockPos pos)
RaytraceBlock.world - the worldsrc - the srcv - the vpos - the pospublic RaytraceBlock(net.minecraft.world.World world,
Point src,
Point dest,
net.minecraft.util.math.BlockPos pos)
RaytraceBlock.world - the worldsrc - the srcdest - the destpos - the pospublic RaytraceBlock(net.minecraft.world.World world,
net.minecraft.util.math.Vec3d src,
net.minecraft.util.math.Vec3d dest,
net.minecraft.util.math.BlockPos pos)
RaytraceBlock.world - the worldsrc - the srcdest - the destpos - the pospublic net.minecraft.world.World world()
RaytraceBlock.public net.minecraft.util.math.RayTraceResult trace()
RayTraceResult with typeOfHit BLOCK if a ray hits a block in the way, or MISS if it
reaches dest without any hit