Package org.cloudburstmc.server.math
Class BlockRayTrace
java.lang.Object
org.cloudburstmc.server.math.BlockRayTrace
- All Implemented Interfaces:
Iterable<com.nukkitx.math.vector.Vector3i>
-
Method Summary
Modifier and TypeMethodDescriptiondoubledistance()com.nukkitx.math.vector.Vector3fcom.nukkitx.math.vector.Vector3fgetEnd()com.nukkitx.math.vector.Vector3fgetStart()Iterator<com.nukkitx.math.vector.Vector3i>iterator()static BlockRayTraceof(com.nukkitx.math.vector.Vector3f start, com.nukkitx.math.vector.Vector3f end)static BlockRayTraceof(com.nukkitx.math.vector.Vector3f start, com.nukkitx.math.vector.Vector3f direction, double distance)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
public static BlockRayTrace of(com.nukkitx.math.vector.Vector3f start, com.nukkitx.math.vector.Vector3f direction, double distance) -
of
public static BlockRayTrace of(com.nukkitx.math.vector.Vector3f start, com.nukkitx.math.vector.Vector3f end) -
getStart
public com.nukkitx.math.vector.Vector3f getStart() -
getEnd
public com.nukkitx.math.vector.Vector3f getEnd() -
getDirection
public com.nukkitx.math.vector.Vector3f getDirection() -
distance
public double distance() -
iterator
-