Class Stats
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.Stats
- All Implemented Interfaces:
ITranslatable
,Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionprotected Abilities
protected AggressionChances
protected ImmutableBattleStats
protected int
protected String
protected Dimensions
protected int
protected com.google.common.collect.ImmutableList<EggGroup>
protected com.google.common.collect.ImmutableList<Evolution>
protected EVYields
protected ExperienceGroup
protected com.google.common.collect.ImmutableList<GenderProperties>
protected Gigantamax
protected GrowthData
protected float
int
The maximum pokemonLevel this Pokémon can be before it would be expected to have evolved.protected com.google.common.collect.ImmutableList<String>
protected com.google.common.collect.ImmutableList<String>
int
The minimum pokemonLevel this Pokémon can be without being more suitable as a pre-evolution.protected Movement
protected Moves
protected String
protected com.google.common.collect.ImmutableList<Gender>
protected com.google.common.collect.ImmutableList<RegistryValue<Species>>
protected SpawnData
protected FormTags
protected String
protected com.google.common.collect.ImmutableList<Element>
protected float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clone()
Gets the abilitiesGets theAggressionChances
of the formGets the base species of the PokemonGets the form's default, immutable, battle statsint
Gets the catch rate of the formGets the dimensions of this form.int
Gets the egg cycles of the formGets an immutable list of theEggGroup
of this formReturns a copy of this form's ev yieldsGets the experience group<T extends EvoCondition>
Optional<T>getFirstEvolutionConditionOfType
(Class<T> type) getGenderProperties
(Gender gender) Gets the gender properties for the given genderGet the gigantamax objectGets the gigantamax form, if availableGets the growth data of the formint
float
Gets the height above the ground the form hoversfloat
Gets the percentage chance of the form being aGender.MALE
getMegaForm
(net.minecraft.world.item.Item item) Gets the mega form for a mega item, if availableGets all potential mega evolutionsList<net.minecraft.world.item.Item>
Gets the mega items for this formGets theMovement
settings of the formgetMoves()
Gets the movesgetName()
Gets the name of the formGets the parent speciesGets all possibleGender
s this form can takeGets the form's pre-evolutions (i.e.Selects a random mega formGets the regional tag if it exists Short cut for {@link this#getTags()#getRegionalTag()}getSpawn()
Gets the spawn data of the formgetTags()
Gets the tags for the formnet.minecraft.network.chat.MutableComponent
Returns the translation component of the objects name.Gets the form name translation key of the pokemongetTypes()
Returns the types of a formfloat
Gets the weight of the pokemonboolean
Checks if the Pokemon has a child of the given speciesboolean
Checks if the form has a gigantamax formboolean
Checks if the form has a mega formboolean
A logical OR for if the form has any of the tagsboolean
Returns if the form has the type(s)boolean
Checks if the forms are equal to thisboolean
Checks if the forms are equal to thisboolean
Checks if the form names are equal to this formboolean
isAlolan()
Checks if the form is alolan Short cut for {@link this#getTags()#isAlolan()} andTags.ALOLAN
boolean
boolean
Checks if the form can only ever be aGender.FEMALE
boolean
boolean
Checks if the form is galarian Short cut for {@link this#getTags()#isGalarian()} andTags.GALARIAN
boolean
If the only gender isGender.NONE
boolean
Checks if the form is the gigantamax formboolean
Checks if the form is hisuian Short cut for {@link this#getTags()#isHisuian()} ()} andTags.HISUIAN
boolean
Checks if a form can only ever be aGender.MALE
boolean
Checks if the form is a mega formboolean
Checks if the form is paldean Short cut for {@link this#getTags()#isPaldean()} ()} ()} andTags.PALDEAN
boolean
isPossibleGender
(Gender gender) Checks if this form can take the given genderboolean
Checks if the form is alolan or galarianboolean
If the form is temporary for battles onlyvoid
void
setGrowthData
(GrowthData growthData) protected void
setParentSpecies
(Species parent)
-
Field Details
-
name
-
translationKey
-
experienceGroup
-
dimensions
-
moves
-
abilities
-
movement
-
aggression
-
battleStats
-
tags
-
spawn
-
evYields
-
possibleGenders
-
genderProperties
-
eggGroups
-
types
-
evolutions
-
preEvolutions
-
defaultBaseForm
-
growthData
-
megaItems
-
megas
-
gigantamax
-
eggCycles
protected int eggCycles -
weight
protected float weight -
catchRate
protected int catchRate -
malePercentage
protected float malePercentage -
minLevel
public transient int minLevelThe minimum pokemonLevel this Pokémon can be without being more suitable as a pre-evolution. -
maxLevel
public transient int maxLevelThe maximum pokemonLevel this Pokémon can be before it would be expected to have evolved.
-
-
Constructor Details
-
Stats
public Stats()
-
-
Method Details
-
clone
-
getName
Gets the name of the form- Returns:
- The name
-
isForm
-
getGenderProperties
Gets the gender properties for the given gender- Parameters:
gender
- The gender searching for- Returns:
- The gender properties
-
getGrowthData
Gets the growth data of the form- Returns:
- The growth data
-
setGrowthData
-
getPossibleGenders
Gets all possibleGender
s this form can take- Returns:
- A copy of the array of all possible genders
-
isPossibleGender
Checks if this form can take the given gender- Parameters:
gender
- The gender being checked- Returns:
- True if it can be this gender
-
isTemporary
public boolean isTemporary()If the form is temporary for battles only- Returns:
- True if it is temporary and should be reverted at the end of battle
-
getBattleStats
Gets the form's default, immutable, battle stats- Returns:
- The battle stats
-
getExperienceGroup
Gets the experience group- Returns:
- The experience group
-
calculateMinMaxLevels
public void calculateMinMaxLevels() -
getHighestFeasibleLevel
public int getHighestFeasibleLevel() -
getMoves
Gets the moves- Returns:
- The moves
-
getTags
Gets the tags for the form- Returns:
- The tags
-
getTypes
Returns the types of a form- Returns:
- Type list
-
hasType
Returns if the form has the type(s)- Returns:
- yes/no
-
getGigantamax
Get the gigantamax object- Returns:
- The gigantamax object
-
hasMegaForm
public boolean hasMegaForm()Checks if the form has a mega form- Returns:
- True if it can mega evolve
-
isMegaForm
public boolean isMegaForm()Checks if the form is a mega form- Returns:
- True if it is a mega evolved pokemon
-
hasGigantamaxForm
public boolean hasGigantamaxForm()Checks if the form has a gigantamax form- Returns:
- True if it can gigantamax
-
isGigantamaxForm
public boolean isGigantamaxForm()Checks if the form is the gigantamax form- Returns:
- True if it is the gigantamax form
-
getMegaItems
Gets the mega items for this form- Returns:
- The mega items
-
getMegaForm
Gets the mega form for a mega item, if available- Returns:
- Optional mega form
-
getMegaForms
Gets all potential mega evolutions- Returns:
- List of potential mega evolutions for this form
-
getGigantamaxForm
Gets the gigantamax form, if available- Returns:
- Optional gigantamax form
-
getRandomMegaForm
Selects a random mega form- Returns:
- A random mega form
-
getDimensions
Gets the dimensions of this form.- Returns:
- The dimensions object
-
getAbilities
Gets the abilities- Returns:
- The pokemon's abilities
-
getWeight
public float getWeight()Gets the weight of the pokemon- Returns:
- The weight
-
getEggGroups
Gets an immutable list of theEggGroup
of this form- Returns:
- The egg groups
-
getTranslationKey
Gets the form name translation key of the pokemon- Specified by:
getTranslationKey
in interfaceITranslatable
- Returns:
- The form translation key
-
getLocalizedName
- Specified by:
getLocalizedName
in interfaceITranslatable
-
getTranslatedName
public net.minecraft.network.chat.MutableComponent getTranslatedName()Description copied from interface:ITranslatable
Returns the translation component of the objects name.- Specified by:
getTranslatedName
in interfaceITranslatable
- Returns:
- The translation component.
-
setParentSpecies
-
getParentSpecies
Gets the parent species- Returns:
-
is
Checks if the form names are equal to this form- Parameters:
names
- The names of forms- Returns:
- True if a match
-
is
Checks if the forms are equal to this- Parameters:
forms
- The forms to check- Returns:
- True if a match is found
-
is
Checks if the forms are equal to this- Parameters:
speciesEquality
- The parent species have to be equal for them to matchforms
- The forms being checked- Returns:
- True if a match is found
-
getEvolutions
-
getFirstEvolutionConditionOfType
-
registerModels
public void registerModels() -
isDefault
public boolean isDefault() -
getMovement
Gets theMovement
settings of the form- Returns:
- The movement settings
-
getAggression
Gets theAggressionChances
of the form- Returns:
- The aggression chances
-
getSpawn
Gets the spawn data of the form- Returns:
- Spawn data
-
getEggCycles
public int getEggCycles()Gets the egg cycles of the form- Returns:
- Egg cycles
-
getHoverHeight
public float getHoverHeight()Gets the height above the ground the form hovers- Returns:
- The hover height
-
getCatchRate
public int getCatchRate()Gets the catch rate of the form- Returns:
- Catch rate
-
getMalePercentage
public float getMalePercentage()Gets the percentage chance of the form being aGender.MALE
- Returns:
- The chance (from 0 to 1) of it being a male
-
isFemaleOnly
public boolean isFemaleOnly()Checks if the form can only ever be aGender.FEMALE
- Returns:
- True if only females can exist
-
isMaleOnly
public boolean isMaleOnly()Checks if a form can only ever be aGender.MALE
- Returns:
- True if only males can exist
-
isGenderless
public boolean isGenderless()If the only gender isGender.NONE
- Returns:
- True if the form is genderless
-
getDefaultBaseForm
-
getEVYields
Returns a copy of this form's ev yields- Returns:
- The ev yields
-
getDefaultGender
-
getDefaultGenderProperties
-
getFirstGender
-
getFirstGenderProperties
-
getGenderProperties
-
getBaseEvolution
Gets the base species of the Pokemon- Returns:
- The base species
-
getPreEvolutions
Gets the form's pre-evolutions (i.e. the evolutions that can lead to this form)- Returns:
- The pre-evolutions
-
isRegional
public boolean isRegional()Checks if the form is alolan or galarian- Returns:
- If the form comes form a region
-
isGalarian
public boolean isGalarian()Checks if the form is galarian Short cut for {@link this#getTags()#isGalarian()} andTags.GALARIAN
- Returns:
- True if is a galarian
-
isAlolan
public boolean isAlolan()Checks if the form is alolan Short cut for {@link this#getTags()#isAlolan()} andTags.ALOLAN
- Returns:
- True if is an alolan
-
isHisuian
public boolean isHisuian()Checks if the form is hisuian Short cut for {@link this#getTags()#isHisuian()} ()} andTags.HISUIAN
- Returns:
- True if is a hisuian
-
isPaldean
public boolean isPaldean()Checks if the form is paldean Short cut for {@link this#getTags()#isPaldean()} ()} ()} andTags.PALDEAN
- Returns:
- True if is a paldean
-
getRegionalTag
Gets the regional tag if it exists Short cut for {@link this#getTags()#getRegionalTag()}- Returns:
- String if is regional, null if not
-
hasTag
A logical OR for if the form has any of the tags- Parameters:
tags
- The tags to check- Returns:
- If any apply to this form
-
hasChild
Checks if the Pokemon has a child of the given species- Parameters:
species
- The child species being checked- Returns:
- True if one of the pre-evolutions is the same species as the child
-