Class OffsetPointGenerator
java.lang.Object
com.hypixel.hytale.procedurallib.logic.point.OffsetPointGenerator
- All Implemented Interfaces:
IPointGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hypixel.hytale.procedurallib.logic.point.IPointGenerator
IPointGenerator.PointConsumer2d -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IPointGeneratorprivate final doubleprivate final doubleprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionOffsetPointGenerator(IPointGenerator generator, double offsetX, double offsetY, double offsetZ) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(int seed, double minX, double minY, double maxX, double maxY, IPointGenerator.PointConsumer2d consumer) doubledoubledoubledoublenearest2D(int seed, double x, double y) nearest3D(int seed, double x, double y, double z) transition2D(int seed, double x, double y) transition3D(int seed, double x, double y, double z)
-
Field Details
-
generator
-
offsetX
private final double offsetX -
offsetY
private final double offsetY -
offsetZ
private final double offsetZ
-
-
Constructor Details
-
OffsetPointGenerator
public OffsetPointGenerator(IPointGenerator generator, double offsetX, double offsetY, double offsetZ)
-
-
Method Details
-
getOffsetX
public double getOffsetX() -
getOffsetY
public double getOffsetY() -
getOffsetZ
public double getOffsetZ() -
nearest2D
- Specified by:
nearest2Din interfaceIPointGenerator
-
nearest3D
- Specified by:
nearest3Din interfaceIPointGenerator
-
transition2D
- Specified by:
transition2Din interfaceIPointGenerator
-
transition3D
- Specified by:
transition3Din interfaceIPointGenerator
-
collect
public void collect(int seed, double minX, double minY, double maxX, double maxY, @Nonnull IPointGenerator.PointConsumer2d consumer) - Specified by:
collectin interfaceIPointGenerator
-
getInterval
public double getInterval()- Specified by:
getIntervalin interfaceIPointGenerator
-