public class EmptyLineCaveNodeShape extendsAbstractCaveNodeShapeimplementsIWorldBounds
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
getAnchor
public
Vector3d
getAnchor
(@Nonnull final Vector3d vector, final double t, final double tv, final double th)
Method getAnchor.
- Parameters:
@Nonnull final Vector3dvectorfinal doubletfinal doubletvfinal doubleth
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 intseedfinal doublexfinal doublezfinal inty
getFloorPosition
public
double
getFloorPosition
(final int seed, final double x, final double z)
Method getFloorPosition.
- Parameters:
final intseedfinal doublexfinal doublez
getCeilingPosition
public
double
getCeilingPosition
(final int seed, final double x, final double z)
Method getCeilingPosition.
- Parameters:
final intseedfinal doublexfinal doublez
hasGeometry
public
boolean
hasGeometry
()
Method hasGeometry.
toString
public
String
toString
()
Method toString.
EmptyLineCaveNodeShapeGenerator
Method EmptyLineCaveNodeShapeGenerator.
- Parameters:
final IDoubleRangelength
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 Randomrandomfinal CaveTypecaveTypefinal CaveNodeparentNodefinal CaveNodeType.CaveNodeChildEntrychildEntryfinal Vector3doriginfinal floatyawfinal floatpitch