public class BlockRayResult extends Object
Modifier | Constructor and Description |
---|---|
protected |
BlockRayResult(BlockRay ray,
RayResult rayResult,
Block block,
boolean hasBlockExceptSearched,
Vector vec,
double lastDistance,
HashMap<Vector,Material> testedLoc) |
Modifier and Type | Method and Description |
---|---|
HashMap<Vector,Material> |
getAllTestedLoc()
Get ALL tested locations as vector with the material founded.
|
@Nullable Block |
getBlock()
Get final block which crate the end of ray
|
double |
getLastDistance()
Get the distance between begin and end.
|
BlockRay |
getRay()
Get BlockRay which does ray action
|
RayResult |
getRayResult()
Get the Ray result
|
@Nullable Material |
getType()
Get block type of final block
|
Vector |
getVector()
Get the vector used to make the ray
|
boolean |
hasBlockExceptSearched()
Know if there is block between location and block which is different than searched
(Don't count AIR)
Cannot be true if there isn't searched type
|
public BlockRay getRay()
public RayResult getRayResult()
public @Nullable Block getBlock()
public @Nullable Material getType()
public boolean hasBlockExceptSearched()
public Vector getVector()
public double getLastDistance()