TetrahedronCaveNodeShape

public class TetrahedronCaveNodeShape extends AbstractCaveNodeShape implements IWorldBounds

Class TetrahedronCaveNodeShape. Provides tetrahedroncavenodeshape functionality for the Hytale server.

java.lang.Object > AbstractCaveNodeShape > TetrahedronCaveNodeShape

Field Summary

ba

final Vector3d ba

Field ba.

bc

final Vector3d bc

Field bc.

ox

final double ox

Field ox.

oy

final double oy

Field oy.

oz

final double oz

Field oz.

x

final double x

Field x.

y

final double y

Field y.

z

final double z

Field z.

Method Detail

TetrahedronCaveNodeShape

public public TetrahedronCaveNodeShape (@Nonnull final Vector3d o)

Method TetrahedronCaveNodeShape.

Parameters:
@Nonnull final Vector3d o

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, final double x, final double z)

Method getFloorPosition.

Parameters:
final int seed
final double x
final double z

getCeilingPosition

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

Method getCeilingPosition.

Parameters:
final int seed
final double x
final double z

determine

static boolean determine (@Nonnull final Vector3d o, @Nonnull final Vector3d n, final double px, final double py, final double pz)

Method determine.

Parameters:
@Nonnull final Vector3d o
@Nonnull final Vector3d n
final double px
final double py
final double pz

generateCaveNodeShape

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

Method generateCaveNodeShape.

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