Class Gigantamax
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.gimmick.Gigantamax
This class represents a Gigantamax form and the potential to have the Gigantamax Factor of a certain
Stats
-
Constructor Summary
ConstructorDescriptionEmpty constructor for a form which cannot gain the Gigantamax Factor nor Gigantamax.Gigantamax
(boolean canHaveFactor) Constructor for a form which could gain the Gigantamax Factor, but not Gigantamax.Gigantamax
(String form, String move) Constructor for a form can gain the Gigantamax Factor and Gigantamax, taking the form ID and the G-Max move. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the parent form of this object can Gigantamax.boolean
canGigantamax
(Pokemon pokemon) Whether the providedPokemon
can Gigantamax based on this object.boolean
Whether the parent form of this object can gain the Gigantamax Factor, irrespective of whether it can Gigantamax itself.getForm()
The form ID of this form's Gigantamax form.getMove()
The G-Max move of this form's Gigantamax form.getMoveIfTypeMatches
(Element type) The G-Max move of this form's Gigantamax form if the provided typing matches, otherwise null.getType()
The typing of the G-Max move of this form's Gigantamax form.
-
Constructor Details
-
Gigantamax
public Gigantamax()Empty constructor for a form which cannot gain the Gigantamax Factor nor Gigantamax. -
Gigantamax
public Gigantamax(boolean canHaveFactor) Constructor for a form which could gain the Gigantamax Factor, but not Gigantamax. -
Gigantamax
Constructor for a form can gain the Gigantamax Factor and Gigantamax, taking the form ID and the G-Max move.
-
-
Method Details
-
canHaveFactor
public boolean canHaveFactor()Whether the parent form of this object can gain the Gigantamax Factor, irrespective of whether it can Gigantamax itself. This will be true for all previous evolutions of a Pokémon which can Gigantamax in its final evolution, for example, Charmander.- Returns:
- if this form can have the Gigantamax Factor or not.
-
canGigantamax
public boolean canGigantamax()Whether the parent form of this object can Gigantamax. canHaveFactor is necessarily true for every form where this is true.- Returns:
- if this form can Gigantamax or not.
-
canGigantamax
Whether the providedPokemon
can Gigantamax based on this object.- Parameters:
pokemon
- the Pokemon to check.- Returns:
- if this
Pokemon
can Gigantamax or not.
-
getForm
The form ID of this form's Gigantamax form. This will be empty if this form cannot Gigantamax.- Returns:
- the Gigantamax form of this form.
-
getMove
The G-Max move of this form's Gigantamax form. This will be null if this form cannot Gigantamax.- Returns:
- the G-Max move of the Gigantamax form of this form.
-
getType
The typing of the G-Max move of this form's Gigantamax form. This will be null if this form cannot Gigantamax.- Returns:
- the typing of the G-Max move of the Gigantamax form of this form.
-
getMoveIfTypeMatches
The G-Max move of this form's Gigantamax form if the provided typing matches, otherwise null. This will always be null if this form cannot Gigantamax.- Parameters:
type
- the typing to compare to.- Returns:
- the G-Max move of the Gigantamax form of this form, or null.
-