Class AbstractDistortedBody
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedBody
- All Implemented Interfaces:
DistortedShape,IChunkBounds,IWorldBounds
- Direct Known Subclasses:
DistortedEllipsoidShape
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractDistortedBody(Vector3d o, Vector3d v, double yaw, double pitch, double radiusX, double radiusY, double radiusZ) privateAbstractDistortedBody(Vector3d o, Vector3d v, CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeiling(double x, double z, double centerY, double height) getEnd()doublegetFloor(double x, double z, double centerY, double height) protected abstract doublegetHeight(int var1, double var2, double var4, double var6, double var8, CaveType var10, ShapeDistortion var11) doublegetHeightAtProjection(int caveSeed, double x, double z, double t, double centerY, CaveType caveType, ShapeDistortion distortion) getStart()private static doublemaxX(CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) private static doublemaxY(CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) private static doublemaxZ(CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) Methods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedShape
getAnchor, getHeightAt, getProjection, getWidthAt, getYAt, hasGeometry, isValidProjectionMethods inherited from interface com.hypixel.hytale.server.worldgen.util.bounds.IChunkBounds
fractionX, fractionZ, getHighBoundX, getHighBoundZ, getHighChunkX, getHighChunkZ, getLowBoundX, getLowBoundZ, getLowChunkX, getLowChunkZ, intersectsChunk, randomX, randomZMethods inherited from interface com.hypixel.hytale.server.worldgen.util.bounds.IWorldBounds
fractionY, intersectsChunk, randomY
-
Field Details
-
o
-
v
-
rotation
-
-
Constructor Details
-
AbstractDistortedBody
-
AbstractDistortedBody
private AbstractDistortedBody(@Nonnull Vector3d o, Vector3d v, @Nonnull CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ)
-
-
Method Details
-
getHeight
protected abstract double getHeight(int var1, double var2, double var4, double var6, double var8, CaveType var10, ShapeDistortion var11) -
getStart
-
getEnd
-
getHeightAtProjection
public double getHeightAtProjection(int caveSeed, double x, double z, double t, double centerY, CaveType caveType, ShapeDistortion distortion) -
getFloor
public double getFloor(double x, double z, double centerY, double height) -
getCeiling
public double getCeiling(double x, double z, double centerY, double height) -
maxX
private static double maxX(@Nonnull CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) -
maxY
private static double maxY(@Nonnull CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ) -
maxZ
private static double maxZ(@Nonnull CoordinateRotator rotation, double radiusX, double radiusY, double radiusZ)
-