Class CaveNode
java.lang.Object
com.hypixel.hytale.server.worldgen.cave.element.CaveNode
- All Implemented Interfaces:
CaveElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WorldBoundsprivate final CaveNodeTypeprivate CavePrefab[]private final floatprivate List<CavePrefab> private final intprivate final CaveNodeShapeprivate final float -
Constructor Summary
ConstructorsConstructorDescriptionCaveNode(int seedOffset, CaveNodeType caveNodeType, CaveNodeShape shape, float yaw, float pitch) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrefab(CavePrefab prefab) voidcompile()voidforEachChunk(LongConsumer consumer) intgetCeilingPosition(int seed, double x, double z) getEnd()intgetFloorPosition(int seed, double x, double z) floatgetPitch()intgetShape()floatgetYaw()toString()
-
Field Details
-
caveNodeType
-
shape
-
bounds
-
seedOffset
private final int seedOffset -
pitch
private final float pitch -
yaw
private final float yaw -
rawCavePrefabs
-
cavePrefabs
-
-
Constructor Details
-
CaveNode
public CaveNode(int seedOffset, CaveNodeType caveNodeType, @Nonnull CaveNodeShape shape, float yaw, float pitch)
-
-
Method Details
-
getSeedOffset
public int getSeedOffset() -
getCaveNodeType
-
getShape
-
getCavePrefabs
-
getYaw
public float getYaw() -
getPitch
public float getPitch() -
getEnd
-
addPrefab
-
getBounds
- Specified by:
getBoundsin interfaceCaveElement
-
getFloorPosition
public int getFloorPosition(int seed, double x, double z) -
getCeilingPosition
public int getCeilingPosition(int seed, double x, double z) -
forEachChunk
-
compile
public void compile() -
toString
-