public class RaytraceChunk extends Raytrace
| Constructor and Description |
|---|
RaytraceChunk(net.minecraft.world.World world,
Point src,
Point dest)
Instantiates a new
RaytraceChunk. |
RaytraceChunk(net.minecraft.world.World world,
Point src,
Vector v)
Instantiates a new
RaytraceChunk. |
RaytraceChunk(net.minecraft.world.World world,
Ray ray)
Instantiates a new
RaytraceChunk. |
| Modifier and Type | Method and Description |
|---|---|
double |
getMin(double x,
double z)
Gets the minimum value of
x, z. |
net.minecraft.util.math.RayTraceResult |
trace()
Does the raytracing.
|
direction, distance, getClosestHit, getDestination, getSource, setLength, tracepublic RaytraceChunk(net.minecraft.world.World world,
Ray ray)
RaytraceChunk.world - the worldray - the raypublic RaytraceChunk(net.minecraft.world.World world,
Point src,
Vector v)
RaytraceChunk.world - the worldsrc - the srcv - the vpublic RaytraceChunk(net.minecraft.world.World world,
Point src,
Point dest)
RaytraceChunk.world - the worldsrc - the srcdest - the destpublic 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 hitpublic double getMin(double x,
double z)
x, z.x - the xz - the zDouble.NaN if x and z are all three Double.NaN