Class PrefabCaveNodeShape
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.shape.PrefabCaveNodeShape
- All Implemented Interfaces:
CaveNodeShape,IChunkBounds,IWorldBounds
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CaveTypeprivate final BlockMaskConditionprivate final Vector3dprivate final intprivate final intprivate final intprivate final intprivate final intprivate final intprivate final Vector3dprivate final WorldGenPrefabSupplierprivate final PrefabRotation -
Constructor Summary
ConstructorsConstructorDescriptionPrefabCaveNodeShape(CaveType caveType, Vector3d o, Vector3d e, WorldGenPrefabSupplier prefabSupplier, PrefabRotation rotation, BlockMaskCondition configuration) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetCeilingPosition(int seed, double x, double z) getEnd()doublegetFloorPosition(int seed, double x, double z) intintintintintintgetO()getStart()voidpopulateChunk(int seed, ChunkGeneratorExecution execution, Cave cave, CaveNode node, Random random) booleanshouldReplace(int seed, double x, double z, int y) toString()Methods 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
-
e
-
prefabSupplier
-
rotation
-
configuration
-
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
-
-
Constructor Details
-
PrefabCaveNodeShape
public PrefabCaveNodeShape(CaveType caveType, @Nonnull Vector3d o, Vector3d e, @Nonnull WorldGenPrefabSupplier prefabSupplier, @Nonnull PrefabRotation rotation, BlockMaskCondition configuration)
-
-
Method Details
-
getCaveType
-
getPrefabRotation
-
getO
-
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
-
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, Random random) - Specified by:
populateChunkin interfaceCaveNodeShape
-
toString
-