java.lang.Object
com.hypixel.hytale.server.worldgen.cave.element.CaveNode
All Implemented Interfaces:
CaveElement

public class CaveNode extends Object implements CaveElement
  • Field Details

    • caveNodeType

      private final CaveNodeType caveNodeType
    • shape

      @Nonnull private final CaveNodeShape shape
    • bounds

      @Nonnull private final WorldBounds bounds
    • seedOffset

      private final int seedOffset
    • pitch

      private final float pitch
    • yaw

      private final float yaw
    • rawCavePrefabs

      @Nullable private List<CavePrefab> rawCavePrefabs
    • cavePrefabs

      private CavePrefab[] cavePrefabs
  • Constructor Details

    • CaveNode

      public CaveNode(int seedOffset, CaveNodeType caveNodeType, @Nonnull CaveNodeShape shape, float yaw, float pitch)
  • Method Details

    • getSeedOffset

      public int getSeedOffset()
    • getCaveNodeType

      public CaveNodeType getCaveNodeType()
    • getShape

      @Nonnull public CaveNodeShape getShape()
    • getCavePrefabs

      public CavePrefab[] getCavePrefabs()
    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • getEnd

      public Vector3d getEnd()
    • addPrefab

      public void addPrefab(@Nonnull CavePrefab prefab)
    • getBounds

      @Nonnull public IWorldBounds getBounds()
      Specified by:
      getBounds in interface CaveElement
    • getFloorPosition

      public int getFloorPosition(int seed, double x, double z)
    • getCeilingPosition

      public int getCeilingPosition(int seed, double x, double z)
    • forEachChunk

      public void forEachChunk(@Nonnull LongConsumer consumer)
    • compile

      public void compile()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object