public class DistortedCaveNodeShape implements CaveNodeShape
Class DistortedCaveNodeShape. Provides distortedcavenodeshape functionality for the Hytale server.
java.lang.Object > DistortedCaveNodeShape
Field Summary
t
Field t.
centerY
Field centerY.
shapeHeight
Field shapeHeight.
minY
Field minY.
floor
Field floor.
maxY
Field maxY.
ceiling
Field ceiling.
chunk
Field chunk.
caveType
Field caveType.
caveNodeType
Field caveNodeType.
shapeBounds
Field shapeBounds.
surfaceLimited
Field surfaceLimited.
environment
Field environment.
chunkLowX
Field chunkLowX.
chunkLowZ
Field chunkLowZ.
chunkHighX
Field chunkHighX.
chunkHighZ
Field chunkHighZ.
minX
Field minX.
minZ
Field minZ.
maxX
Field maxX.
maxZ
Field maxZ.
cx
Field cx.
cz
Field cz.
chunkHeight
Field chunkHeight.
floorY
Field floorY.
ceilingY
Field ceilingY.
current
Field current.
currentFluid
Field currentFluid.
isCandidateBlock
Field isCandidateBlock.
blockEntry
Field blockEntry.
covers2
Field covers2.
covers
Field covers.
entry
Field entry.
y2
Field y2.
blockEntry2
Field blockEntry2.
length
Field length.
origin
Field origin.
direction
Field direction.
startWidth
Field startWidth.
startHeight
Field startHeight.
endWidth
Field endWidth.
endHeight
Field endHeight.
midWidth
Field midWidth.
midHeight
Field midHeight.
shape
Field shape.
offset
Field offset.
Method Detail
DistortedCaveNodeShape
public
DistortedCaveNodeShape
(final CaveType caveType, final DistortedShape shape, final ShapeDistortion distortion)
Method DistortedCaveNodeShape.
- Parameters:
final CaveTypecaveTypefinal DistortedShapeshapefinal ShapeDistortiondistortion
getAnchor
Vector3d
getAnchor
(final Vector3d vector, final double tx, final double ty, final double tz)
Method getAnchor.
- Parameters:
final Vector3dvectorfinal doubletxfinal doubletyfinal doubletz
hasGeometry
boolean
hasGeometry
()
Method hasGeometry.
shouldReplace
boolean
shouldReplace
(final int seed, final double x, final double z, final int y)
Method shouldReplace.
- Parameters:
final intseedfinal doublexfinal doublezfinal inty
getFloorPosition
double
getFloorPosition
(final int seed, final double x, final double z)
Method getFloorPosition.
- Parameters:
final intseedfinal doublexfinal doublez
getCeilingPosition
double
getCeilingPosition
(final int seed, final double x, final double z)
Method getCeilingPosition.
- Parameters:
final intseedfinal doublexfinal doublez
populateChunk
void
populateChunk
(final int seed, @Nonnull final ChunkGeneratorExecution execution, @Nonnull final Cave cave, @Nonnull final CaveNode node, @Nonnull final Random random)
Method populateChunk.
- Parameters:
final intseed@Nonnull final ChunkGeneratorExecutionexecution@Nonnull final Cavecave@Nonnull final CaveNodenode@Nonnull final Randomrandom
getFloor
int
getFloor
(final int seed, final double x, final double z, final double centerY, double height, final int minY)
Method getFloor.
- Parameters:
final intseedfinal doublexfinal doublezfinal doublecenterYdoubleheightfinal intminY
getCeiling
int
getCeiling
(final int seed, final double x, final double z, final double centerY, double height, final int maxY)
Method getCeiling.
- Parameters:
final intseedfinal doublexfinal doublezfinal doublecenterYdoubleheightfinal intmaxY
DistortedCaveNodeShapeGenerator
public
DistortedCaveNodeShapeGenerator
(final DistortedShape.Factory shapeFactory, final IDoubleRange widthRange, final IDoubleRange heightRange, @Nullable final IDoubleRange midWidthRange, @Nullable final IDoubleRange midHeightRange, @Nullable final IDoubleRange lengthRange, final boolean inheritParentRadius, final ShapeDistortion distortion, @Nullable final GeneralNoise.InterpolationFunction interpolation)
Method DistortedCaveNodeShapeGenerator.
- Parameters:
final DistortedShape.FactoryshapeFactoryfinal IDoubleRangewidthRangefinal IDoubleRangeheightRange@Nullable final IDoubleRangemidWidthRange@Nullable final IDoubleRangemidHeightRange@Nullable final IDoubleRangelengthRangefinal booleaninheritParentRadiusfinal ShapeDistortiondistortion@Nullable final GeneralNoise.InterpolationFunctioninterpolation
generateCaveNodeShape
CaveNodeShape
generateCaveNodeShape
(final Random random, final CaveType caveType, @Nullable final CaveNode parentNode, @Nonnull final CaveNodeType.CaveNodeChildEntry childEntry, @Nonnull final Vector3d position, final float yaw, final float pitch)
Method generateCaveNodeShape.
- Parameters:
final Randomrandomfinal CaveTypecaveType@Nullable final CaveNodeparentNode@Nonnull final CaveNodeType.CaveNodeChildEntrychildEntry@Nonnull final Vector3dpositionfinal floatyawfinal floatpitch
getOrigin
Vector3d
getOrigin
(@Nonnull final Vector3d origin, @Nullable final CaveNode parentNode, @Nonnull final CaveNodeType.CaveNodeChildEntry childEntry)
Method getOrigin.
- Parameters:
@Nonnull final Vector3dorigin@Nullable final CaveNodeparentNode@Nonnull final CaveNodeType.CaveNodeChildEntrychildEntry
getLength
Method getLength.
- Parameters:
@Nullable final IDoubleRangelengthRangefinal Randomrandom
getDirection
Method getDirection.
- Parameters:
final doubleyawdoublepitchfinal doublelength
Vector3d
new
Vector3d
(TrigMathUtil.sin(pitch)
Method Vector3d.
- Parameters:
TrigMathUtil.sin(pitchTrigMathUtil.sin(pitch
getStartWidth
double
getStartWidth
(final boolean inheritParentRadius, @Nullable final CaveNode parentNode, @Nonnull final IDoubleRange fallback, final Random random)
Method getStartWidth.
- Parameters:
final booleaninheritParentRadius@Nullable final CaveNodeparentNode@Nonnull final IDoubleRangefallbackfinal Randomrandom
getStartHeight
double
getStartHeight
(final boolean inheritParentRadius, @Nullable final CaveNode parentNode, @Nonnull final IDoubleRange fallback, final Random random)
Method getStartHeight.
- Parameters:
final booleaninheritParentRadius@Nullable final CaveNodeparentNode@Nonnull final IDoubleRangefallbackfinal Randomrandom
getMiddleRadius
double
getMiddleRadius
(final double start, final double end, @Nullable final IDoubleRange range, final Random random)
Method getMiddleRadius.
- Parameters:
final doublestartfinal doubleend@Nullable final IDoubleRangerangefinal Randomrandom