Contents
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
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDistortedBody(org.joml.Vector3d o, org.joml.Vector3d v, double yaw, double pitch, double radiusX, double radiusY, double radiusZ) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeiling(double x, double z, double centerY, double height) org.joml.Vector3dgetEnd()Get the end point of this ShapedoublegetFloor(double x, double z, double centerY, double height) doublegetHeightAtProjection(int caveSeed, double x, double z, double t, double centerY, CaveType caveType, ShapeDistortion distortion) Get the height/vertical-radius of this Shape at a position x,z and corresponding projection torg.joml.Vector3dgetStart()Get the start point of this ShapeMethods inherited from class AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DistortedShape
getAnchor, getHeightAt, getProjection, getWidthAt, getYAt, isValidProjectionMethods inherited from interface IChunkBounds
fractionX, fractionZ, getHighBoundX, getHighBoundZ, getHighChunkX, getHighChunkZ, getLowBoundX, getLowBoundZ, getLowChunkX, getLowChunkZ, intersectsChunk, randomX, randomZMethods inherited from interface IWorldBounds
fractionY, intersectsChunk, isValid, randomY
-
Constructor Details
-
AbstractDistortedBody
public AbstractDistortedBody(@Nonnull org.joml.Vector3d o, org.joml.Vector3d v, double yaw, double pitch, double radiusX, double radiusY, double radiusZ)
-
-
Method Details
-
getStart
@Nonnull public org.joml.Vector3d getStart()Description copied from interface:DistortedShapeGet the start point of this Shape- Returns:
- the start point
-
getEnd
@Nonnull public org.joml.Vector3d getEnd()Description copied from interface:DistortedShapeGet the end point of this Shape- Returns:
- the end point
-
getHeightAtProjection
public double getHeightAtProjection(int caveSeed, double x, double z, double t, double centerY, CaveType caveType, ShapeDistortion distortion) Description copied from interface:DistortedShapeGet the height/vertical-radius of this Shape at a position x,z and corresponding projection t- Parameters:
caveSeed- the CaveType seedx- the x-coordinate to get the height forz- the z-coordinate to get the height fort- the projection to get the height forcenterY- the y-coordinate at the center of this Shape at projection tcaveType- the CaveTypedistortion- the distortion to be applied to the Shape- Returns:
- the height/vertical-radius of the Shape at the given position
-
getFloor
public double getFloor(double x, double z, double centerY, double height) -
getCeiling
public double getCeiling(double x, double z, double centerY, double height)
-