public class RayTrace
extends java.lang.Object
Constructor and Description |
---|
RayTrace(org.bukkit.util.Vector origin,
org.bukkit.util.Vector direction) |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.bukkit.block.Block> |
getBlocks(org.bukkit.World world,
double blocksAway,
double accuracy) |
org.bukkit.util.Vector |
getPostion(double blocksAway) |
void |
highlight(org.bukkit.World world,
double blocksAway,
double accuracy) |
boolean |
intersects(BoundingBox boundingBox,
double blocksAway,
double accuracy) |
boolean |
intersects(BoundingBox boundingBox,
double skip,
double blocksAway,
double accuracy) |
boolean |
intersects(org.bukkit.util.Vector min,
org.bukkit.util.Vector max,
double blocksAway,
double accuracy) |
static boolean |
intersects(org.bukkit.util.Vector position,
org.bukkit.util.Vector min,
org.bukkit.util.Vector max) |
boolean |
isOnLine(org.bukkit.util.Vector position) |
org.bukkit.util.Vector |
positionOfIntersection(BoundingBox boundingBox,
double blocksAway,
double accuracy) |
org.bukkit.util.Vector |
positionOfIntersection(BoundingBox boundingBox,
double skip,
double blocksAway,
double accuracy) |
org.bukkit.util.Vector |
positionOfIntersection(org.bukkit.util.Vector min,
org.bukkit.util.Vector max,
double blocksAway,
double accuracy) |
java.util.List<org.bukkit.util.Vector> |
traverse(double blocksAway,
double accuracy) |
java.util.List<org.bukkit.util.Vector> |
traverse(double skip,
double blocksAway,
double accuracy) |
public RayTrace(org.bukkit.util.Vector origin, org.bukkit.util.Vector direction)
public static boolean intersects(org.bukkit.util.Vector position, org.bukkit.util.Vector min, org.bukkit.util.Vector max)
public org.bukkit.util.Vector getPostion(double blocksAway)
public boolean isOnLine(org.bukkit.util.Vector position)
public java.util.List<org.bukkit.util.Vector> traverse(double blocksAway, double accuracy)
public java.util.List<org.bukkit.util.Vector> traverse(double skip, double blocksAway, double accuracy)
public java.util.List<org.bukkit.block.Block> getBlocks(org.bukkit.World world, double blocksAway, double accuracy)
public org.bukkit.util.Vector positionOfIntersection(org.bukkit.util.Vector min, org.bukkit.util.Vector max, double blocksAway, double accuracy)
public boolean intersects(org.bukkit.util.Vector min, org.bukkit.util.Vector max, double blocksAway, double accuracy)
public org.bukkit.util.Vector positionOfIntersection(BoundingBox boundingBox, double blocksAway, double accuracy)
public org.bukkit.util.Vector positionOfIntersection(BoundingBox boundingBox, double skip, double blocksAway, double accuracy)
public boolean intersects(BoundingBox boundingBox, double blocksAway, double accuracy)
public boolean intersects(BoundingBox boundingBox, double skip, double blocksAway, double accuracy)
public void highlight(org.bukkit.World world, double blocksAway, double accuracy)