Class AggressionChances
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.aggression.AggressionChances
Representing the chances of a
Species being aggressive, timid
or passive.
By default passive = 100 - (timid + aggressive)-
Constructor Summary
ConstructorsConstructorDescriptionAggressionChances(int timid, int aggressive) Default constructor for calculating passiveAggressionChances(int timid, int passive, int aggressive) Constructor taking all three values -
Method Summary
Modifier and TypeMethodDescriptionCalculates theAggressionfor a pokemon using these chances assuming the owner is null (i.e.calculateAggression(UUID owner) Calculates theAggressionfor the pokemon using these chancesbooleanintintintgetTimid()inthashCode()
-
Constructor Details
-
AggressionChances
public AggressionChances(int timid, int passive, int aggressive) Constructor taking all three values- Parameters:
timid- Chance of being timidpassive- Chance of being passiveaggressive- Chance of being aggressive
-
AggressionChances
public AggressionChances(int timid, int aggressive) Default constructor for calculating passive- Parameters:
timid-aggressive-
-
-
Method Details
-
calculateAggression
Calculates theAggressionfor a pokemon using these chances assuming the owner is null (i.e. wild pokemon)- Returns:
- The new
Aggression
-
calculateAggression
Calculates theAggressionfor the pokemon using these chances- Parameters:
owner- The owner - if not null will always returnAggression.PASSIVE- Returns:
- The new
Aggression
-
getTimid
public int getTimid() -
getPassive
public int getPassive() -
getAggressive
public int getAggressive() -
equals
-
hashCode
public int hashCode()
-