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
Modifier and TypeFieldDescriptionTheSpawnCondition
that must be failed to apply this multiplier.TheSpawnCondition
that must be passed to apply this multiplier.float
The float by which to multiply the standard rarity should the conditions fit. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(SpawnInfo spawnInfo, SpawnLocation spawnLocation, float rarity) Returns the transformed rarity if the givenSpawnLocation
satisfies the conditions, or the unmodified rarity otherwise.void
onImport()
-
Field Details
-
multiplier
public float multiplierThe float by which to multiply the standard rarity should the conditions fit. -
condition
TheSpawnCondition
that must be passed to apply this multiplier. -
anticondition
TheSpawnCondition
that must be failed to apply this multiplier.
-
-
Constructor Details
-
RarityMultiplier
public RarityMultiplier()
-
-
Method Details
-
apply
Returns the transformed rarity if the givenSpawnLocation
satisfies the conditions, or the unmodified rarity otherwise. -
onImport
public void onImport()
-