Contents
Class AbstractDistortedExtrusion
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
- All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds
- Direct Known Subclasses:
DistortedCylinderShape
-
Nested Class Summary
Nested classes/interfaces inherited from interface DistortedShape
DistortedShape.Factory -
Constructor Summary
ConstructorsConstructorDescriptionAbstractDistortedExtrusion(org.joml.Vector3d o, org.joml.Vector3d v, double width, double height, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetHeightAtProjection(int seed, 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 tMethods 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, getCeiling, getEnd, getFloor, getHeightAt, getProjection, getStart, 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
-
AbstractDistortedExtrusion
public AbstractDistortedExtrusion(@Nonnull org.joml.Vector3d o, @Nonnull org.joml.Vector3d v, double width, double height, GeneralNoise.InterpolationFunction interpolation)
-
-
Method Details
-
getHeightAtProjection
public double getHeightAtProjection(int seed, double x, double z, double t, double centerY, @Nonnull CaveType caveType, @Nonnull ShapeDistortion distortion) Description copied from interface:DistortedShapeGet the height/vertical-radius of this Shape at a position x,z and corresponding projection t- Parameters:
seed- 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
-