EmptyLineCaveNodeShape

public class EmptyLineCaveNodeShape extends AbstractCaveNodeShape implements IWorldBounds

Class EmptyLineCaveNodeShape. Provides emptylinecavenodeshape functionality for the Hytale server.

java.lang.Object > AbstractCaveNodeShape > EmptyLineCaveNodeShape

Field Summary

x

final double x

Field x.

y

final double y

Field y.

z

final double z

Field z.

l

final double l

Field l.

direction

final Vector3d direction

Field direction.

Method Detail

EmptyLineCaveNodeShape

public public EmptyLineCaveNodeShape (final Vector3d o, final Vector3d v)

Method EmptyLineCaveNodeShape.

Parameters:
final Vector3d o
final Vector3d v

getStart

public Vector3d getStart ()

Method getStart.

getEnd

public Vector3d getEnd ()

Method getEnd.

getAnchor

public Vector3d getAnchor (@Nonnull final Vector3d vector, final double t, final double tv, final double th)

Method getAnchor.

Parameters:
@Nonnull final Vector3d vector
final double t
final double tv
final double th

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

hasGeometry

public boolean hasGeometry ()

Method hasGeometry.

toString

public String toString ()

Method toString.

EmptyLineCaveNodeShapeGenerator

public public EmptyLineCaveNodeShapeGenerator (final IDoubleRange length)

Method EmptyLineCaveNodeShapeGenerator.

Parameters:
final IDoubleRange length

generateCaveNodeShape

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

Method generateCaveNodeShape.

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