Class BlockRayTrace

java.lang.Object
org.cloudburstmc.server.math.BlockRayTrace
All Implemented Interfaces:
Iterable<com.nukkitx.math.vector.Vector3i>

public class BlockRayTrace extends Object implements Iterable<com.nukkitx.math.vector.Vector3i>
  • 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

      @Nonnull public Iterator<com.nukkitx.math.vector.Vector3i> iterator()
      Specified by:
      iterator in interface Iterable<com.nukkitx.math.vector.Vector3i>