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 -
Field Summary
FieldsFields inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedCylinderShape
endHeight, endWidth, midHeight, midWidth, o, PITCH_COMPENSATION_MIN, PITCH_COMPENSATION_RANGE, startHeight, startWidth, vFields inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
interpolation -
Constructor Summary
ConstructorsConstructorDescriptionDistortedPipeShape(Vector3d o, 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 TypeMethodDescriptionprotected static doublegetCompensatedDim(double t, double startDim, double midDim, double endDim, double compensation, GeneralNoise.InterpolationFunction interpolation) doublegetHeightAt(double t) doublegetWidthAt(double t) booleanisValidProjection(double t) toString()Methods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedCylinderShape
getAnchor, getCompensationFactor, getDimAt, getDistanceSq, getEnd, getHeightCompensation, getHeightComponent, getProjection, getStart, getYAtMethods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.distorted.AbstractDistortedExtrusion
getHeightAtProjectionMethods 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, wait, wait, waitMethods inherited from interface com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedShape
getCeiling, getFloor, hasGeometryMethods 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
-
compensation
private final double compensation
-
-
Constructor Details
-
DistortedPipeShape
public DistortedPipeShape(@Nonnull Vector3d o, @Nonnull 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) - Specified by:
getWidthAtin interfaceDistortedShape- Overrides:
getWidthAtin classDistortedCylinderShape
-
getHeightAt
public double getHeightAt(double t) - Specified by:
getHeightAtin interfaceDistortedShape- Overrides:
getHeightAtin classDistortedCylinderShape
-
isValidProjection
public boolean isValidProjection(double t) - Specified by:
isValidProjectionin interfaceDistortedShape- Overrides:
isValidProjectionin classDistortedCylinderShape
-
toString
- Overrides:
toStringin classDistortedCylinderShape
-
getCompensatedDim
protected static double getCompensatedDim(double t, double startDim, double midDim, double endDim, double compensation, @Nonnull GeneralNoise.InterpolationFunction interpolation)
-