CaveNode

public class CaveNode implements CaveElement

Class CaveNode. Provides cavenode functionality for the Hytale server.

java.lang.Object > CaveNode

Field Summary

rawCavePrefabs

private List rawCavePrefabs

Field rawCavePrefabs.

cavePrefabs

private CavePrefab[] cavePrefabs

Field cavePrefabs.

lowZ

final int lowZ

Field lowZ.

highX

final int highX

Field highX.

highZ

final int highZ

Field highZ.

Method Detail

CaveNode

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

Method CaveNode.

Parameters:
final int seedOffset
final CaveNodeType caveNodeType
@Nonnull final CaveNodeShape shape
final float yaw
final float pitch

WorldBounds

public new WorldBounds (shape.getBounds()

Method WorldBounds.

Parameters:
shape.getBounds( shape.getBounds(

getSeedOffset

public int getSeedOffset ()

Method getSeedOffset.

getCaveNodeType

public CaveNodeType getCaveNodeType ()

Method getCaveNodeType.

getShape

public CaveNodeShape getShape ()

Method getShape.

getCavePrefabs

public CavePrefab[] getCavePrefabs ()

Method getCavePrefabs.

getYaw

public float getYaw ()

Method getYaw.

getPitch

public float getPitch ()

Method getPitch.

getEnd

public Vector3d getEnd ()

Method getEnd.

addPrefab

public void addPrefab (@Nonnull final CavePrefab prefab)

Method addPrefab.

Parameters:
@Nonnull final CavePrefab prefab

getBounds

public IWorldBounds getBounds ()

Method getBounds.

getFloorPosition

public int getFloorPosition (final int seed, final double x, final double z)

Method getFloorPosition.

Parameters:
final int seed
final double x
final double z

getCeilingPosition

public int getCeilingPosition (final int seed, final double x, final double z)

Method getCeilingPosition.

Parameters:
final int seed
final double x
final double z

forEachChunk

public void forEachChunk (@Nonnull final LongConsumer consumer)

Method forEachChunk.

Parameters:
@Nonnull final LongConsumer consumer

compile

public void compile ()

Method compile.

toString

public String toString ()

Method toString.