Class OriginShape<S extends Shape>

java.lang.Object
com.hypixel.hytale.math.shape.OriginShape<S>
All Implemented Interfaces:
Shape

public class OriginShape<S extends Shape> extends Object implements Shape
  • Field Details

    • origin

      public final Vector3d origin
    • shape

      public S extends Shape shape
  • Constructor Details

    • OriginShape

      public OriginShape()
    • OriginShape

      public OriginShape(Vector3d origin, S shape)
  • Method Details

    • getOrigin

      public Vector3d getOrigin()
    • getShape

      public S getShape()
    • getBox

      public Box getBox(double x, double y, double z)
      Specified by:
      getBox in interface Shape
    • containsPosition

      public boolean containsPosition(double x, double y, double z)
      Specified by:
      containsPosition in interface Shape
    • expand

      public void expand(double radius)
      Specified by:
      expand in interface Shape
    • forEachBlock

      public boolean forEachBlock(double x, double y, double z, double epsilon, TriIntPredicate consumer)
      Specified by:
      forEachBlock in interface Shape
    • forEachBlock

      public <T> boolean forEachBlock(double x, double y, double z, double epsilon, T t, TriIntObjPredicate<T> consumer)
      Specified by:
      forEachBlock in interface Shape
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object