java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.archetypes.algorithms.selection.FlatDistinctAlgorithm
All Implemented Interfaces:
SelectionAlgorithm

public class FlatDistinctAlgorithm extends Object implements SelectionAlgorithm
The Flat & Distinct Algorithm

This algorithm will ignore the frequency of particular spawns inside the area, and treat all as equally likely in terms of location (no location weighting). The used rarity value is the mean of all location-adjusted rarities for each SpawnInfo.

The result is that even if a particular SpawnInfo is available at many more locations, it is not given any greater priority over one that may be possible only at a single location. This is designed for legendary Pokémon spawning.

It is guaranteed to only return zero or one SpawnActions.