Class PokemonHelper

java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.PokemonHelper

public class PokemonHelper extends Object
Static helper class for generic pokemon operations
  • Constructor Details

    • PokemonHelper

      public PokemonHelper()
  • Method Details

    • hasPermanentFormsOrPalettes

      public static boolean hasPermanentFormsOrPalettes(Pokemon pokemon)
      Check if a pokemon has any non-default permanent forms or special palettes
      Parameters:
      pokemon -
      Returns:
      true if any permanent form or special palette is found, false if not
    • isFormPermanent

      public static boolean isFormPermanent(Stats form)
      Verify if a Stats form is non-default and permanent
      Parameters:
      form -
      Returns:
      true if the form is permanent, otherwise false
    • isSpecialPalette

      public static boolean isSpecialPalette(PaletteProperties palette)
      Verify if a PaletteProperties is special palette
      Parameters:
      palette -
      Returns:
      true if the palette is special, otherwise false
    • getFullName

      public static net.minecraft.network.chat.MutableComponent getFullName(Pokemon pokemon)
      Get a pokemon's full name with form and palette if obtained
      Parameters:
      pokemon -
      Returns:
      the full name of the pokemon
    • getFullName

      public static net.minecraft.network.chat.MutableComponent getFullName(Pokemon pokemon, boolean useNickname)
      Get a pokemon's full name with form and palette if obtained
      Parameters:
      pokemon -
      useNickname - true if the nickname should be used, false if the species name should be used
      Returns:
      the full name of the pokemon