PrefabCaveNodeShape

public class PrefabCaveNodeShape implements CaveNodeShape, IWorldBounds

Class PrefabCaveNodeShape. Provides prefabcavenodeshape functionality for the Hytale server.

java.lang.Object > PrefabCaveNodeShape

Field Summary

prefab

final IPrefabBuffer prefab

Field prefab.

bounds

final IChunkBounds bounds

Field bounds.

anchor

final Vector3d anchor

Field anchor.

x

final double x

Field x.

y

final double y

Field y.

z

final double z

Field z.

cx

final int cx

Field cx.

cz

final int cz

Field cz.

externalSeed

final long externalSeed

Field externalSeed.

buffer

final PrefabPasteUtil.PrefabPasteBuffer buffer

Field buffer.

rotation

final PrefabRotation rotation

Field rotation.

offset

final Vector3d offset

Field offset.

shape

final CaveNodeShape shape

Field shape.

parentRotation

final PrefabRotation parentRotation

Field parentRotation.

Method Detail

PrefabCaveNodeShape

public public PrefabCaveNodeShape (final CaveType caveType, @Nonnull final Vector3d o, final Vector3d e, @Nonnull final WorldGenPrefabSupplier prefabSupplier, @Nonnull final PrefabRotation rotation, final BlockMaskCondition configuration)

Method PrefabCaveNodeShape.

Parameters:
final CaveType caveType
@Nonnull final Vector3d o
final Vector3d e
@Nonnull final WorldGenPrefabSupplier prefabSupplier
@Nonnull final PrefabRotation rotation
final BlockMaskCondition configuration

getCaveType

public CaveType getCaveType ()

Method getCaveType.

getPrefabRotation

public PrefabRotation getPrefabRotation ()

Method getPrefabRotation.

getO

public Vector3d getO ()

Method getO.

getStart

public Vector3d getStart ()

Method getStart.

getEnd

public Vector3d getEnd ()

Method getEnd.

getAnchor

public Vector3d getAnchor (@Nonnull final Vector3d vector, final double tx, final double ty, final double tz)

Method getAnchor.

Parameters:
@Nonnull final Vector3d vector
final double tx
final double ty
final double tz

getBounds

public IWorldBounds getBounds ()

Method getBounds.

getLowBoundX

public int getLowBoundX ()

Method getLowBoundX.

getLowBoundZ

public int getLowBoundZ ()

Method getLowBoundZ.

getHighBoundX

public int getHighBoundX ()

Method getHighBoundX.

getHighBoundZ

public int getHighBoundZ ()

Method getHighBoundZ.

getLowBoundY

public int getLowBoundY ()

Method getLowBoundY.

getHighBoundY

public int getHighBoundY ()

Method getHighBoundY.

shouldReplace

public boolean shouldReplace (final int seed, final double x, final double z, final int y)

Method shouldReplace.

Parameters:
final int seed
final double x
final double z
final int y

getFloorPosition

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

Method getFloorPosition.

Parameters:
final int seed
double x
double z

getCeilingPosition

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

Method getCeilingPosition.

Parameters:
final int seed
double x
double z

populateChunk

public void populateChunk (final int seed, @Nonnull final ChunkGeneratorExecution execution, @Nonnull final Cave cave, @Nonnull final CaveNode node, final Random random)

Method populateChunk.

Parameters:
final int seed
@Nonnull final ChunkGeneratorExecution execution
@Nonnull final Cave cave
@Nonnull final CaveNode node
final Random random

toString

public String toString ()

Method toString.

PrefabCaveNodeShapeGenerator

public public PrefabCaveNodeShapeGenerator (final List prefabs, final BlockMaskCondition configuration)

Method PrefabCaveNodeShapeGenerator.

Parameters:
final List prefabs
final BlockMaskCondition configuration

generateCaveNodeShape

public CaveNodeShape generateCaveNodeShape (@Nonnull final Random random, final CaveType caveType, @Nullable final CaveNode parentNode, @Nonnull final CaveNodeType.CaveNodeChildEntry childEntry, @Nonnull final Vector3d origin, final float yaw, final float pitch)

Method generateCaveNodeShape.

Parameters:
@Nonnull final Random random
final CaveType caveType
@Nullable final CaveNode parentNode
@Nonnull final CaveNodeType.CaveNodeChildEntry childEntry
@Nonnull final Vector3d origin
final float yaw
final float pitch