public class TetrahedronCaveNodeShape extendsAbstractCaveNodeShapeimplementsIWorldBounds
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
getAnchor
public
Vector3d
getAnchor
(@Nonnull final Vector3d vector, final double tx, final double ty, final double tz)
Method getAnchor.
- Parameters:
@Nonnull final Vector3dvectorfinal doubletxfinal doubletyfinal doubletz
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
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 Vector3do@Nonnull final Vector3dnfinal doublepxfinal doublepyfinal doublepz
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 Randomrandomfinal CaveTypecaveTypefinal CaveNodeparentNodefinal CaveNodeType.CaveNodeChildEntrychildEntry@Nonnull final Vector3doriginfinal floatyawfinal floatpitch