ClusterProp

public class ClusterProp extends Prop

Class ClusterProp. Provides clusterprop functionality for the Hytale server.

java.lang.Object > Prop > ClusterProp

Field Summary

contextDependency

final ContextDependency contextDependency

Field contextDependency.

readRange2

final Vector3i readRange2

Field readRange2.

writeRange2

final Vector3i writeRange2

Field writeRange2.

readRange

final Vector3i readRange

Field readRange.

writeRange

final Vector3i writeRange

Field writeRange.

scannerContext

final Scanner.Context scannerContext

Field scannerContext.

validPositions

final List validPositions

Field validPositions.

positions

final List positions

Field positions.

columnSpace

final WindowVoxelSpace columnSpace

Field columnSpace.

random

final FastRandom random

Field random.

distance

final double distance

Field distance.

density

final double density

Field density.

pickedProp

final Prop pickedProp

Field pickedProp.

propScanResult

final ScanResult propScanResult

Field propScanResult.

childContext

final Context childContext

Field childContext.

Method Detail

ClusterProp

public public ClusterProp (final int range, @Nonnull final Double2DoubleFunction weightCurve, final int seed, @Nonnull final WeightedMap propWeightedMap, @Nonnull final Pattern pattern, @Nonnull final Scanner scanner)

Method ClusterProp.

Parameters:
final int range
@Nonnull final Double2DoubleFunction weightCurve
final int seed
@Nonnull final WeightedMap propWeightedMap
@Nonnull final Pattern pattern
@Nonnull final Scanner scanner

scan

public PositionListScanResult scan (@Nonnull final Vector3i position, @Nonnull final VoxelSpace materialSpace, @Nonnull final WorkerIndexer.Id id)

Method scan.

Parameters:
@Nonnull final Vector3i position
@Nonnull final VoxelSpace materialSpace
@Nonnull final WorkerIndexer.Id id

place

public void place (@Nonnull final Context context)

Method place.

Parameters:
@Nonnull final Context context

FastRandom

public new FastRandom (this.seedGenerator.seedAt(position.x, position.z)

Method FastRandom.

Parameters:
this.seedGenerator.seedAt(position.x this.seedGenerator.seedAt(position.x
position.z position.z

getContextDependency

public ContextDependency getContextDependency ()

Method getContextDependency.

getWriteBounds

public Bounds3i getWriteBounds ()

Method getWriteBounds.