V
- The type of volume being worked onpublic interface BiomeVolumeWorker<V extends BiomeVolume>
Modifier and Type | Method and Description |
---|---|
V |
getVolume()
Returns the volume this worker operates on.
|
void |
iterate(BiomeVolumeVisitor<V> visitor)
Iterates this biome volume, calling the visitor on each coordinate pair.
|
void |
map(BiomeVolumeMapper mapper,
MutableBiomeVolume destination)
Applies a mapping operation to all the biomes in the volume and saves the
results to the destination volume.
|
void |
merge(BiomeVolume second,
BiomeVolumeMerger merger,
MutableBiomeVolume destination)
Applies a merging operation to the biomes of the operating volume and an
external one.
|
<T> T |
reduce(BiomeVolumeReducer<T> reducer,
BiFunction<T,T,T> merge,
T identity)
Applies a reduction operation to the volume.
|
V getVolume()
void map(BiomeVolumeMapper mapper, MutableBiomeVolume destination)
mapper
- The mapping operationdestination
- The destination volumevoid merge(BiomeVolume second, BiomeVolumeMerger merger, MutableBiomeVolume destination)
second
- The volume to merge withmerger
- The merging operationdestination
- The destination volumevoid iterate(BiomeVolumeVisitor<V> visitor)
visitor
- The visitor<T> T reduce(BiomeVolumeReducer<T> reducer, BiFunction<T,T,T> merge, T identity)
T
- The type of the reductionreducer
- The reducing operationmerge
- Merges two reductions into oneidentity
- The identity of the operation