Class Cylinder

java.lang.Object
com.hypixel.hytale.math.shape.Cylinder
All Implemented Interfaces:
Shape

public class Cylinder extends Object implements Shape
  • Field Details

    • height

      public double height
    • radiusX

      public double radiusX
    • radiusZ

      public double radiusZ
  • Constructor Details

    • Cylinder

      public Cylinder()
    • Cylinder

      public Cylinder(double height, double radiusX, double radiusZ)
  • Method Details

    • getRadiusX

      public double getRadiusX()
    • getRadiusZ

      public double getRadiusZ()
    • getHeight

      public double getHeight()
    • assign

      @Nonnull public Cylinder assign(double radius)
    • containsPosition

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

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

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

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

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

      @Nonnull protected Cylinder clone()
      Overrides:
      clone in class Object
    • toString

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