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 intseedOffsetfinal CaveNodeTypecaveNodeType@Nonnull final CaveNodeShapeshapefinal floatyawfinal floatpitch
WorldBounds
public
new
WorldBounds
(shape.getBounds()
Method WorldBounds.
- Parameters:
shape.getBounds(shape.getBounds(
getSeedOffset
public
int
getSeedOffset
()
Method getSeedOffset.
getCavePrefabs
public
CavePrefab[]
getCavePrefabs
()
Method getCavePrefabs.
getYaw
public
float
getYaw
()
Method getYaw.
getPitch
public
float
getPitch
()
Method getPitch.
getFloorPosition
public
int
getFloorPosition
(final int seed, final double x, final double z)
Method getFloorPosition.
- Parameters:
final intseedfinal doublexfinal doublez
getCeilingPosition
public
int
getCeilingPosition
(final int seed, final double x, final double z)
Method getCeilingPosition.
- Parameters:
final intseedfinal doublexfinal doublez
forEachChunk
public
void
forEachChunk
(@Nonnull final LongConsumer consumer)
Method forEachChunk.
- Parameters:
@Nonnull final LongConsumerconsumer
compile
public
void
compile
()
Method compile.
toString
public
String
toString
()
Method toString.