public class RaytraceBlock
extends java.lang.Object
| Constructor and Description |
|---|
RaytraceBlock(net.minecraft.world.World world,
Point src,
Point dest,
net.minecraft.util.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
Point src,
Vector v,
net.minecraft.util.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
Ray ray,
net.minecraft.util.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
RaytraceBlock(net.minecraft.world.World world,
net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest,
net.minecraft.util.BlockPos pos)
Sets the parameters for this
RaytraceBlock. |
| Modifier and Type | Method and Description |
|---|---|
Vector |
direction()
Gets the direction vector of the ray.
|
double |
distance()
Gets the length of the ray.
|
net.minecraft.util.MovingObjectPosition |
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.BlockPos pos)
RaytraceBlock.world - the worldray - the raypos - the pospublic RaytraceBlock(net.minecraft.world.World world,
Point src,
Vector v,
net.minecraft.util.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.BlockPos pos)
RaytraceBlock.world - the worldsrc - the srcdest - the destpos - the pospublic RaytraceBlock(net.minecraft.world.World world,
net.minecraft.util.Vec3 src,
net.minecraft.util.Vec3 dest,
net.minecraft.util.BlockPos pos)
RaytraceBlock.world - the worldsrc - the srcdest - the destpos - the pospublic net.minecraft.world.World world()
RaytraceBlock.public Vector direction()
public double distance()
public net.minecraft.util.MovingObjectPosition trace()
MovingObjectPosition with typeOfHit BLOCK if a ray hits a block in the way, or MISS if it
reaches dest without any hit