Contents
Class DistortedPipeShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedCylinderShape
com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedPipeShape
- All Implemented Interfaces:
DistortedShape, IChunkBounds, IWorldBounds
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDistortedPipeShape(org.joml.Vector3d o, org.joml.Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, double maxWidth, double maxHeight, double compensation, GeneralNoise.InterpolationFunction interpolation) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetHeightAt(double t) Get the vertical radius of the Shape at projection tdoublegetWidthAt(double t) Get the horizontal radius of the Shape at projection tbooleanisValidProjection(double t) Validate a projection on this ShapetoString()Methods inherited from class DistortedCylinderShape
getAnchor, getDistanceSq, getEnd, getHeightComponent, getProjection, getStart, getYAtMethods inherited from class AbstractDistortedExtrusion
getHeightAtProjectionMethods inherited from class AbstractDistortedShape
clampPitch, getHighBoundX, getHighBoundY, getHighBoundZ, getLowBoundX, getLowBoundY, getLowBoundZMethods inherited from interface DistortedShape
getCeiling, getFloorMethods 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
-
DistortedPipeShape
public DistortedPipeShape(@Nonnull org.joml.Vector3d o, @Nonnull org.joml.Vector3d v, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, double maxWidth, double maxHeight, double compensation, GeneralNoise.InterpolationFunction interpolation)
-
-
Method Details
-
getWidthAt
public double getWidthAt(double t) Description copied from interface:DistortedShapeGet the horizontal radius of the Shape at projection t- Specified by:
getWidthAtin interfaceDistortedShape- Overrides:
getWidthAtin classDistortedCylinderShape- Parameters:
t- the projection- Returns:
- the horizontal radius of the Shape
-
getHeightAt
public double getHeightAt(double t) Description copied from interface:DistortedShapeGet the vertical radius of the Shape at projection t- Specified by:
getHeightAtin interfaceDistortedShape- Overrides:
getHeightAtin classDistortedCylinderShape- Parameters:
t- the projection- Returns:
- the vertical radius of the Shape
-
isValidProjection
public boolean isValidProjection(double t) Description copied from interface:DistortedShapeValidate a projection on this Shape- Specified by:
isValidProjectionin interfaceDistortedShape- Overrides:
isValidProjectionin classDistortedCylinderShape- Parameters:
t- the project- Returns:
- True if a valid projection
-
toString
- Overrides:
toStringin classDistortedCylinderShape
-