Class RarityMultiplier
java.lang.Object
com.pixelmonmod.pixelmon.api.spawning.conditions.RarityMultiplier
A component of 
SpawnInfo which mutates the rarity of the spawn if
 the location it is trying to spawn at satisfies the condition and does not
 satisfy the anticondition.- 
Field Summary
FieldsModifier and TypeFieldDescriptionTheSpawnConditionthat must be failed to apply this multiplier.TheSpawnConditionthat must be passed to apply this multiplier.floatThe float by which to multiply the standard rarity should the conditions fit. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfloatapply(SpawnInfo spawnInfo, SpawnLocation spawnLocation, float rarity) Returns the transformed rarity if the givenSpawnLocationsatisfies the conditions, or the unmodified rarity otherwise.voidonImport() 
- 
Field Details
- 
multiplier
public float multiplierThe float by which to multiply the standard rarity should the conditions fit. - 
condition
TheSpawnConditionthat must be passed to apply this multiplier. - 
anticondition
TheSpawnConditionthat must be failed to apply this multiplier. 
 - 
 - 
Constructor Details
- 
RarityMultiplier
public RarityMultiplier() 
 - 
 - 
Method Details
- 
apply
Returns the transformed rarity if the givenSpawnLocationsatisfies the conditions, or the unmodified rarity otherwise. - 
onImport
public void onImport() 
 -