java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.gimmick.Gigantamax

public class Gigantamax extends Object
This class represents a Gigantamax form and the potential to have the Gigantamax Factor of a certain Stats
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty 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 Type
    Method
    Description
    boolean
    Whether the parent form of this object can Gigantamax.
    boolean
    Whether the provided Pokemon 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.
    The form ID of this form's Gigantamax form.
    The G-Max move of this form's Gigantamax form.
    The G-Max move of this form's Gigantamax form if the provided typing matches, otherwise null.
    The typing of the G-Max move of this form's Gigantamax form.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public 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 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

      public boolean canGigantamax(Pokemon pokemon)
      Whether the provided Pokemon can Gigantamax based on this object.
      Parameters:
      pokemon - the Pokemon to check.
      Returns:
      if this Pokemon can Gigantamax or not.
    • getForm

      public String 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

      public ImmutableAttack 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

      public Element 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

      public ImmutableAttack getMoveIfTypeMatches(Element type)
      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.