Contents
Class DistortedPipeShape.Factory
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.distorted.DistortedPipeShape.Factory
- All Implemented Interfaces:
DistortedShape.Factory
- Enclosing class:
DistortedPipeShape
-
Field Summary
Fields inherited from interface DistortedShape.Factory
DEFAULT_INTERPOLATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(org.joml.Vector3d origin, org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) Creates new instances of a DistortedShape implementation.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DistortedShape.Factory
create, create, create, create
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
create
@Nonnull public DistortedShape create(@Nonnull org.joml.Vector3d origin, @Nonnull org.joml.Vector3d direction, double length, double startWidth, double startHeight, double midWidth, double midHeight, double endWidth, double endHeight, GeneralNoise.InterpolationFunction interpolation) Description copied from interface:DistortedShape.FactoryCreates new instances of a DistortedShape implementation.The interpretation of the parameters is determined by the implementing shape. For example, a symmetrical shape such as a sphere might not make use of the direction, and might only use one of the width/height pairs to describe its dimensions. A cylinder on the other hand could make use of all parameters to describe its characteristics.
- Specified by:
createin interfaceDistortedShape.Factory- Parameters:
origin- the origin or center of the shapedirection- the direction of the shapestartWidth- the starting width of the shapestartHeight- the starting height of the shapemidWidth- the width half-way along the length of the shapemidHeight- the height half-way along the length of the shapeendWidth- the width at the end of the shapeendHeight- the height at the end of the shapeinterpolation- the interpolation function to be used when calculating the shape- Returns:
- a new instance of a given DistortedShape implementation
-