Class Abilities
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.abilities.Abilities
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAbility[]
An array of all the form's potential abilitiesgetAbilityByName
(String name) int
getAbilitySlot
(Ability check) Gets the slot of the abilityAbility[]
getAll()
Gets the hidden abilities and normal abilities combinedAbility[]
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 abilityGets a random ability from the form's set of abilitiesgetRandomAbilityExcluding
(Ability... excluding) Gets a random ability from the form's set of abilities excluding those providedGets a random ability from the form's set of hidden abilitiesgetRandomHiddenAbilityExcluding
(Ability... excluding) Gets a random ability from the form's set of hidden abilities excluding those providedboolean
boolean
boolean
isHiddenAbility
(Ability... abilities) resolveAbility
(int slot, boolean hidden) resolveFromOldStyleSlot
(int slot) transferAbility
(Stats form, Ability ability)
-
Constructor Details
-
Abilities
Default constructor- Parameters:
abilities
- All abilitieshiddenAbilities
- All hidden abilities
-
-
Method Details
-
getAbilities
An array of all the form's potential abilities- Returns:
- All abilities the form can have
-
getHiddenAbilities
An array of all the form's potential hidden abilities Currently will only have a maximum of one per pokemon. However, if GameFreak ever add multiple then this will be where the others reside- Returns:
- All hidden abilities the form can have
-
hasHiddenAbilities
public boolean hasHiddenAbilities() -
getAll
Gets the hidden abilities and normal abilities combined- Returns:
- All the abilities
-
getRandomAbility
Gets a random ability from the form's set of abilities- Returns:
- A random ability
-
getRandomAbilityExcluding
Gets a random ability from the form's set of abilities excluding those provided- Parameters:
excluding
- The ones to ignore- Returns:
- A random ability
-
getRandomHiddenAbility
Gets a random ability from the form's set of hidden abilities- Returns:
- A random hidden ability
-
getRandomHiddenAbilityExcluding
Gets a random ability from the form's set of hidden abilities excluding those provided- Parameters:
excluding
- The ones to ignore- Returns:
- A random hidden ability
-
getAbilitySlot
Gets the slot of the ability- Parameters:
check
- Ability searching for- Returns:
- -1 if not found
-
getHiddenAbilitySlot
Gets the slot of the ability- Parameters:
check
- Ability searching for- Returns:
- -1 if not found
-
resolveAbility
-
resolveFromOldStyleSlot
-
isAbility
-
isHiddenAbility
-
transferAbility
-
getAbilityByName
-