Class PipeCaveNodeShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.AbstractCaveNodeShape
com.hypixel.hytale.server.worldgen.cave.shape.PipeCaveNodeShape
- All Implemented Interfaces:
CaveNodeShape,IChunkBounds,IWorldBounds
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPipeCaveNodeShape(CaveType caveType, Vector3d o, Vector3d v, double radius1, double radius2, double middleRadius) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeilingPosition(int seed, double x, double z) getEnd()doublegetFloorPosition(int seed, double x, double z) intintintintintintdoubledoubleprivate doublegetRadiusAt(double t) getStart()private doubleprojectPointOnNode(double px, double py, double pz) booleanshouldReplace(int seed, double x, double z, int y) toString()Methods inherited from class com.hypixel.hytale.server.worldgen.cave.shape.AbstractCaveNodeShape
populateChunkMethods 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.CaveNodeShape
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
-
caveType
-
o
-
v
-
lowBoundX
private final int lowBoundX -
lowBoundY
private final int lowBoundY -
lowBoundZ
private final int lowBoundZ -
highBoundX
private final int highBoundX -
highBoundY
private final int highBoundY -
highBoundZ
private final int highBoundZ -
radius1
private final double radius1 -
radius2
private final double radius2 -
middleRadius
private final double middleRadius
-
-
Constructor Details
-
PipeCaveNodeShape
-
-
Method Details
-
getStart
- Specified by:
getStartin interfaceCaveNodeShape
-
getEnd
- Specified by:
getEndin interfaceCaveNodeShape
-
getAnchor
- Specified by:
getAnchorin interfaceCaveNodeShape
-
getBounds
- Specified by:
getBoundsin interfaceCaveNodeShape
-
getLowBoundX
public int getLowBoundX()- Specified by:
getLowBoundXin interfaceIChunkBounds
-
getLowBoundZ
public int getLowBoundZ()- Specified by:
getLowBoundZin interfaceIChunkBounds
-
getHighBoundX
public int getHighBoundX()- Specified by:
getHighBoundXin interfaceIChunkBounds
-
getHighBoundZ
public int getHighBoundZ()- Specified by:
getHighBoundZin interfaceIChunkBounds
-
getLowBoundY
public int getLowBoundY()- Specified by:
getLowBoundYin interfaceIWorldBounds
-
getHighBoundY
public int getHighBoundY()- Specified by:
getHighBoundYin interfaceIWorldBounds
-
getRadius1
public double getRadius1() -
getRadius2
public double getRadius2() -
shouldReplace
public boolean shouldReplace(int seed, double x, double z, int y) - Specified by:
shouldReplacein interfaceCaveNodeShape
-
projectPointOnNode
private double projectPointOnNode(double px, double py, double pz) -
getRadiusAt
private double getRadiusAt(double t) -
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
-
toString
-