Class DistortedCaveNodeShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.DistortedCaveNodeShape
- All Implemented Interfaces:
CaveNodeShape
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CaveTypeprivate final ShapeDistortionprivate final DistortedShape -
Constructor Summary
ConstructorsConstructorDescriptionDistortedCaveNodeShape(CaveType caveType, DistortedShape shape, ShapeDistortion distortion) -
Method Summary
Modifier and TypeMethodDescriptionprivate intgetCeiling(int seed, double x, double z, double centerY, double height, int maxY) doublegetCeilingPosition(int seed, double x, double z) getEnd()private intgetFloor(int seed, double x, double z, double centerY, double height, int minY) doublegetFloorPosition(int seed, double x, double z) getShape()getStart()booleanvoidpopulateChunk(int seed, ChunkGeneratorExecution execution, Cave cave, CaveNode node, Random random) booleanshouldReplace(int seed, double x, double z, int y)
-
Field Details
-
caveType
-
shape
-
distortion
-
-
Constructor Details
-
DistortedCaveNodeShape
-
-
Method Details
-
getShape
-
getStart
- Specified by:
getStartin interfaceCaveNodeShape
-
getEnd
- Specified by:
getEndin interfaceCaveNodeShape
-
getAnchor
- Specified by:
getAnchorin interfaceCaveNodeShape
-
getBounds
- Specified by:
getBoundsin interfaceCaveNodeShape
-
hasGeometry
public boolean hasGeometry()- Specified by:
hasGeometryin interfaceCaveNodeShape
-
shouldReplace
public boolean shouldReplace(int seed, double x, double z, int y) - Specified by:
shouldReplacein interfaceCaveNodeShape
-
getFloorPosition
public double getFloorPosition(int seed, double x, double z) - Specified by:
getFloorPositionin interfaceCaveNodeShape
-
getCeilingPosition
public double getCeilingPosition(int seed, double x, double z) - Specified by:
getCeilingPositionin interfaceCaveNodeShape
-
populateChunk
public void populateChunk(int seed, @Nonnull ChunkGeneratorExecution execution, @Nonnull Cave cave, @Nonnull CaveNode node, @Nonnull Random random) - Specified by:
populateChunkin interfaceCaveNodeShape
-
getFloor
private int getFloor(int seed, double x, double z, double centerY, double height, int minY) -
getCeiling
private int getCeiling(int seed, double x, double z, double centerY, double height, int maxY)
-