Package com.hypixel.hytale.math.shape
Class Cylinder
java.lang.Object
com.hypixel.hytale.math.shape.Cylinder
- All Implemented Interfaces:
Shape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassign(double radius) protected Cylinderclone()booleancontainsPosition(double x, double y, double z) voidexpand(double radius) booleanforEachBlock(double x, double y, double z, double epsilon, TriIntPredicate consumer) <T> booleanforEachBlock(double x, double y, double z, double epsilon, T t, TriIntObjPredicate<T> consumer) getBox(double x, double y, double z) doubledoubledoubletoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.math.shape.Shape
containsPosition, containsPosition, forEachBlock, forEachBlock, forEachBlock, forEachBlock, forEachBlock, forEachBlock, getBox
-
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
-
containsPosition
public boolean containsPosition(double x, double y, double z) - Specified by:
containsPositionin interfaceShape
-
forEachBlock
public boolean forEachBlock(double x, double y, double z, double epsilon, @Nonnull TriIntPredicate consumer) - Specified by:
forEachBlockin interfaceShape
-
forEachBlock
public <T> boolean forEachBlock(double x, double y, double z, double epsilon, T t, @Nonnull TriIntObjPredicate<T> consumer) - Specified by:
forEachBlockin interfaceShape
-
expand
public void expand(double radius) -
getBox
-
clone
-
toString
-