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

public class LocationWeightedAlgorithm extends Object implements SelectionAlgorithm
The Location-Weighted Algorithm

This algorithm will favour the entities that are available at more locations. This uses cumulative sums of rarities, such that if a SpawnInfo occurs at two SpawnLocation, it is exactly twice as likely as a different SpawnInfo with an identical rarity that is only possible at one SpawnLocation.