Class Stats
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.Stats
- All Implemented Interfaces:
ITranslatable,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Abilitiesprotected AggressionChancesprotected ImmutableBattleStatsprotected intprotected Stringprotected Dimensionsprotected intprotected com.google.common.collect.ImmutableList<EggGroup>protected com.google.common.collect.ImmutableList<Evolution>protected EVYieldsprotected ExperienceGroupprotected com.google.common.collect.ImmutableList<GenderProperties>protected Gigantamaxprotected GrowthDataprotected floatintThe 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>intThe minimum pokemonLevel this Pokémon can be without being more suitable as a pre-evolution.protected Movementprotected Movesprotected Stringprotected com.google.common.collect.ImmutableList<Gender>protected com.google.common.collect.ImmutableList<RegistryValue<Species>>protected SpawnDataprotected FormTagsprotected Stringprotected com.google.common.collect.ImmutableList<Element>protected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()Gets the abilitiesGets theAggressionChancesof the formGets the base species of the PokemonGets the form's default, immutable, battle statsintGets the catch rate of the formGets the dimensions of this form.intGets the egg cycles of the formGets an immutable list of theEggGroupof 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 formintfloatGets the height above the ground the form hoversfloatGets the percentage chance of the form being aGender.MALEgetMegaForm(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 theMovementsettings of the formgetMoves()Gets the movesgetName()Gets the name of the formGets the parent speciesGets all possibleGenders 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.MutableComponentReturns the translation component of the objects name.Gets the form name translation key of the pokemongetTypes()Returns the types of a formfloatGets the weight of the pokemonbooleanChecks if the Pokemon has a child of the given speciesbooleanChecks if the form has a gigantamax formbooleanChecks if the form has a mega formbooleanA logical OR for if the form has any of the tagsbooleanReturns if the form has the type(s)booleanChecks if the forms are equal to thisbooleanChecks if the forms are equal to thisbooleanChecks if the form names are equal to this formbooleanisAlolan()Checks if the form is alolan Short cut for {@link this#getTags()#isAlolan()} andTags.ALOLANbooleanbooleanChecks if the form can only ever be aGender.FEMALEbooleanbooleanChecks if the form is galarian Short cut for {@link this#getTags()#isGalarian()} andTags.GALARIANbooleanIf the only gender isGender.NONEbooleanChecks if the form is the gigantamax formbooleanChecks if the form is hisuian Short cut for {@link this#getTags()#isHisuian()} ()} andTags.HISUIANbooleanChecks if a form can only ever be aGender.MALEbooleanChecks if the form is a mega formbooleanChecks if the form is paldean Short cut for {@link this#getTags()#isPaldean()} ()} ()} andTags.PALDEANbooleanisPossibleGender(Gender gender) Checks if this form can take the given genderbooleanChecks if the form is alolan or galarianbooleanIf the form is temporary for battles onlyvoidvoidsetGrowthData(GrowthData growthData) protected voidsetParentSpecies(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 possibleGenders 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 theEggGroupof this form- Returns:
- The egg groups
-
getTranslationKey
Gets the form name translation key of the pokemon- Specified by:
getTranslationKeyin interfaceITranslatable- Returns:
- The form translation key
-
getLocalizedName
- Specified by:
getLocalizedNamein interfaceITranslatable
-
getTranslatedName
public net.minecraft.network.chat.MutableComponent getTranslatedName()Description copied from interface:ITranslatableReturns the translation component of the objects name.- Specified by:
getTranslatedNamein 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 theMovementsettings of the form- Returns:
- The movement settings
-
getAggression
Gets theAggressionChancesof 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
-