public class Abilities
extends java.lang.Object
Constructor and Description |
---|
Abilities(Ability[] abilities,
Ability[] hiddenAbilities)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Ability[] |
getAbilities()
An array of all the form's potential abilities
|
Ability |
getAbilityByName(java.lang.String name) |
int |
getAbilitySlot(Ability check)
Gets the slot of the ability
|
Ability[] |
getAll()
Gets the hidden abilities and normal abilities combined
|
Ability[] |
getHiddenAbilities()
An array of all the form's potential hidden abilities
Currently will only have a maximum of one per pokemon.
|
int |
getHiddenAbilitySlot(Ability check)
Gets the slot of the ability
|
Ability |
getRandomAbility()
Gets a random ability from the form's set of abilities
|
Ability |
getRandomAbilityExcluding(Ability... excluding)
Gets a random ability from the form's set of abilities excluding those provided
|
Ability |
getRandomHiddenAbility()
Gets a random ability from the form's set of hidden abilities
|
Ability |
getRandomHiddenAbilityExcluding(Ability... excluding)
Gets a random ability from the form's set of hidden abilities excluding those provided
|
boolean |
hasHiddenAbilities() |
boolean |
isAbility(Ability... abilities) |
boolean |
isHiddenAbility(Ability... abilities) |
Ability |
resolveAbility(int slot,
boolean hidden) |
Ability |
resolveFromOldStyleSlot(int slot) |
Ability |
transferAbility(Stats form,
Ability ability) |
public Ability[] getAbilities()
public Ability[] getHiddenAbilities()
public boolean hasHiddenAbilities()
public Ability[] getAll()
public Ability getRandomAbility()
public Ability getRandomAbilityExcluding(Ability... excluding)
excluding
- The ones to ignorepublic Ability getRandomHiddenAbility()
public Ability getRandomHiddenAbilityExcluding(Ability... excluding)
excluding
- The ones to ignorepublic int getAbilitySlot(Ability check)
check
- Ability searching forpublic int getHiddenAbilitySlot(Ability check)
check
- Ability searching forpublic Ability resolveAbility(int slot, boolean hidden)
public Ability resolveFromOldStyleSlot(int slot)
public boolean isAbility(Ability... abilities)
public boolean isHiddenAbility(Ability... abilities)
public Ability getAbilityByName(java.lang.String name)