Class PointGenerator
java.lang.Object
com.hypixel.hytale.procedurallib.logic.point.PointGenerator
- All Implemented Interfaces:
IPointGenerator
- Direct Known Subclasses:
SeedResourcePointGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hypixel.hytale.procedurallib.logic.point.IPointGenerator
IPointGenerator.PointConsumer2d -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CellDistanceFunctionprotected final PointEvaluatorprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionPointGenerator(int seedOffset, CellDistanceFunction cellDistanceFunction, PointEvaluator pointEvaluator) -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(int seed, double minX, double minY, double maxX, double maxY, IPointGenerator.PointConsumer2d consumer) voidcollect0(int seed, double minX, double minY, double maxX, double maxY, PointConsumer<IPointGenerator.PointConsumer2d> pointConsumer, IPointGenerator.PointConsumer2d consumer) booleandoubleinthashCode()protected ResultBuffer.Bounds2dprotected ResultBuffer.ResultBuffer2dprotected ResultBuffer.ResultBuffer3dnearest2D(int seed, double x, double y) nearest3D(int seed, double x, double y, double z) toString()transition2D(int seed, double x, double y) transition3D(int seed, double x, double y, double z)
-
Field Details
-
seedOffset
protected final int seedOffset -
cellDistanceFunction
-
pointEvaluator
-
-
Constructor Details
-
PointGenerator
public PointGenerator(int seedOffset, CellDistanceFunction cellDistanceFunction, PointEvaluator pointEvaluator)
-
-
Method Details
-
localBounds2d
-
localBuffer2d
-
localBuffer3d
-
nearest2D
- Specified by:
nearest2Din interfaceIPointGenerator
-
nearest3D
- Specified by:
nearest3Din interfaceIPointGenerator
-
transition2D
- Specified by:
transition2Din interfaceIPointGenerator
-
transition3D
- Specified by:
transition3Din interfaceIPointGenerator
-
getInterval
public double getInterval()- Specified by:
getIntervalin interfaceIPointGenerator
-
collect
public void collect(int seed, double minX, double minY, double maxX, double maxY, IPointGenerator.PointConsumer2d consumer) - Specified by:
collectin interfaceIPointGenerator
-
collect0
public void collect0(int seed, double minX, double minY, double maxX, double maxY, PointConsumer<IPointGenerator.PointConsumer2d> pointConsumer, IPointGenerator.PointConsumer2d consumer) -
equals
-
hashCode
public int hashCode() -
toString
-