Class PokemonHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.PokemonHelper
Static helper class for generic pokemon operations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.MutableComponent
getFullName
(Pokemon pokemon) Get a pokemon's full name with form and palette if obtainedstatic net.minecraft.network.chat.MutableComponent
getFullName
(Pokemon pokemon, boolean useNickname) Get a pokemon's full name with form and palette if obtainedstatic boolean
hasPermanentFormsOrPalettes
(Pokemon pokemon) Check if a pokemon has any non-default permanent forms or special palettesstatic boolean
isFormPermanent
(Stats form) Verify if a Stats form is non-default and permanentstatic boolean
isSpecialPalette
(PaletteProperties palette) Verify if a PaletteProperties is special palette
-
Constructor Details
-
PokemonHelper
public PokemonHelper()
-
-
Method Details
-
hasPermanentFormsOrPalettes
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
Verify if a Stats form is non-default and permanent- Parameters:
form
-- Returns:
- true if the form is permanent, otherwise false
-
isSpecialPalette
Verify if a PaletteProperties is special palette- Parameters:
palette
-- Returns:
- true if the palette is special, otherwise false
-
getFullName
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
-