public final class RayTraceUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static net.minecraft.util.math.Vec3d |
inferSneakingEyePosition(net.minecraft.entity.Entity entity) |
static net.minecraft.util.math.RayTraceResult |
rayTraceTowards(net.minecraft.entity.Entity entity,
Rotation rotation,
double blockReachDistance)
Performs a block raytrace with the specified rotations.
|
static net.minecraft.util.math.RayTraceResult |
rayTraceTowards(net.minecraft.entity.Entity entity,
Rotation rotation,
double blockReachDistance,
boolean wouldSneak) |
public static net.minecraft.util.math.RayTraceResult rayTraceTowards(net.minecraft.entity.Entity entity, Rotation rotation, double blockReachDistance)
entity
- The entity representing the raytrace sourcerotation
- The rotation to raytrace towardsblockReachDistance
- The block reach distance of the entitypublic static net.minecraft.util.math.RayTraceResult rayTraceTowards(net.minecraft.entity.Entity entity, Rotation rotation, double blockReachDistance, boolean wouldSneak)
public static net.minecraft.util.math.Vec3d inferSneakingEyePosition(net.minecraft.entity.Entity entity)