public class Stats extends java.lang.Object implements ITranslatable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected Abilities |
abilities |
protected AggressionChances |
aggression |
protected ImmutableBattleStats |
battleStats |
protected int |
catchRate |
protected java.lang.String |
defaultBaseForm |
protected Dimensions |
dimensions |
protected int |
eggCycles |
protected com.google.common.collect.ImmutableList<EggGroup> |
eggGroups |
protected com.google.common.collect.ImmutableList<Evolution> |
evolutions |
protected EVYields |
evYields |
protected ExperienceGroup |
experienceGroup |
protected com.google.common.collect.ImmutableList<GenderProperties> |
genderProperties |
protected Gigantamax |
gigantamax |
protected float |
malePercentage |
int |
maxLevel
The maximum pokemonLevel this Pokémon can be before it would be expected to have evolved.
|
protected com.google.common.collect.ImmutableList<java.lang.String> |
megaItems |
protected com.google.common.collect.ImmutableList<java.lang.String> |
megas |
int |
minLevel
The minimum pokemonLevel this Pokémon can be without being more suitable as a pre-evolution.
|
protected Movement |
movement |
protected Moves |
moves |
protected java.lang.String |
name |
protected com.google.common.collect.ImmutableList<Gender> |
possibleGenders |
protected com.google.common.collect.ImmutableList<RegistryValue<Species>> |
preEvolutions |
protected SpawnData |
spawn |
protected FormTags |
tags |
protected java.lang.String |
translationKey |
protected com.google.common.collect.ImmutableList<Element> |
types |
protected float |
weight |
Constructor and Description |
---|
Stats() |
Modifier and Type | Method and Description |
---|---|
void |
calculateMinMaxLevels() |
Stats |
clone() |
boolean |
equals(java.lang.Object obj) |
Abilities |
getAbilities()
Gets the abilities
|
AggressionChances |
getAggression()
Gets the
AggressionChances of the form |
Species |
getBaseEvolution()
Gets the base species of the Pokemon
|
ImmutableBattleStats |
getBattleStats()
Gets the form's default, immutable, battle stats
|
int |
getCatchRate()
Gets the catch rate of the form
|
java.lang.String |
getDefaultBaseForm() |
Gender |
getDefaultGender() |
GenderProperties |
getDefaultGenderProperties() |
Dimensions |
getDimensions()
Gets the dimensions of this form.
|
int |
getEggCycles()
Gets the egg cycles of the form
|
java.util.List<EggGroup> |
getEggGroups()
Gets an immutable list of the
EggGroup of this form |
java.util.List<Evolution> |
getEvolutions() |
EVYields |
getEVYields()
Returns a copy of this form's ev yields
|
ExperienceGroup |
getExperienceGroup()
Gets the experience group
|
<T extends EvoCondition> |
getFirstEvolutionConditionOfType(java.lang.Class<T> type) |
Gender |
getFirstGender() |
GenderProperties |
getFirstGenderProperties() |
java.util.List<GenderProperties> |
getGenderProperties() |
GenderProperties |
getGenderProperties(Gender gender)
Gets the gender properties for the given gender
|
Gigantamax |
getGigantamax()
Get the gigantamax object
|
java.util.Optional<Stats> |
getGigantamaxForm()
Gets the gigantamax form, if available
|
int |
getHighestFeasibleLevel() |
float |
getHoverHeight()
Gets the height above the ground the form hovers
|
java.lang.String |
getLocalizedName() |
float |
getMalePercentage()
Gets the percentage chance of the form being a
Gender.MALE |
java.util.Optional<Stats> |
getMegaForm(net.minecraft.item.Item item)
Gets the mega form for a mega item, if available
|
java.util.List<Stats> |
getMegaForms()
Gets all potential mega evolutions
|
java.util.List<net.minecraft.item.Item> |
getMegaItems()
Gets the mega items for this form
|
Movement |
getMovement()
Gets the
Movement settings of the form |
Moves |
getMoves()
Gets the moves
|
java.lang.String |
getName()
Gets the name of the form
|
Species |
getParentSpecies()
Gets the parent species
|
java.util.List<Gender> |
getPossibleGenders()
Gets all possible
Gender s this form can take |
java.util.List<Species> |
getPreEvolutions()
Gets the form's pre-evolutions (i.e.
|
Stats |
getRandomMegaForm()
Selects a random mega form
|
java.lang.String |
getRegionalTag()
Gets the regional tag if it exists
Short cut for
this#getTags()#getRegionalTag() |
SpawnData |
getSpawn()
Gets the spawn data of the form
|
FormTags |
getTags()
Gets the tags for the form
|
net.minecraft.util.text.TranslationTextComponent |
getTranslatedName()
Returns the translation component of the objects name.
|
java.lang.String |
getTranslationKey()
Gets the form name translation key of the pokemon
|
java.util.List<Element> |
getTypes()
Returns the types of a form
|
float |
getWeight()
Gets the weight of the pokemon
|
boolean |
hasChild(Species species)
Checks if the Pokemon has a child of the given species
|
boolean |
hasGigantamaxForm()
Checks if the form has a gigantamax form
|
int |
hashCode() |
boolean |
hasMegaForm()
Checks if the form has a mega form
|
boolean |
hasTag(java.lang.String... tags)
A logical OR for if the form has any of the tags
|
boolean |
hasType(Element... types)
Returns if the form has the type(s)
|
boolean |
is(boolean speciesEquality,
Stats... forms)
Checks if the forms are equal to this
|
boolean |
is(Stats... forms)
Checks if the forms are equal to this
|
boolean |
is(java.lang.String... names)
Checks if the form names are equal to this form
|
boolean |
isAlolan()
Checks if the form is alolan
Short cut for
this#getTags()#isAlolan() and Tags.ALOLAN |
boolean |
isDefault() |
boolean |
isFemaleOnly()
Checks if the form can only ever be a
Gender.FEMALE |
boolean |
isForm(java.lang.String... forms) |
boolean |
isGalarian()
Checks if the form is galarian
Short cut for
this#getTags()#isGalarian() and Tags.GALARIAN |
boolean |
isGenderless()
If the only gender is
Gender.NONE |
boolean |
isHisuian()
Checks if the form is hisuian
Short cut for
this#getTags()#isHisuian() ()} and Tags.HISUIAN |
boolean |
isMaleOnly()
Checks if a form can only ever be a
Gender.MALE |
boolean |
isPaldean()
Checks if the form is paldean
Short cut for
this#getTags()#isPaldean() ()} ()} and Tags.PALDEAN |
boolean |
isPossibleGender(Gender gender)
Checks if this form can take the given gender
|
boolean |
isRegional()
Checks if the form is alolan or galarian
|
boolean |
isTemporary()
If the form is temporary for battles only
|
void |
registerModels() |
protected void |
setParentSpecies(Species parent) |
java.lang.String |
toString() |
protected java.lang.String name
protected java.lang.String translationKey
protected ExperienceGroup experienceGroup
protected Dimensions dimensions
protected Moves moves
protected Abilities abilities
protected Movement movement
protected AggressionChances aggression
protected ImmutableBattleStats battleStats
protected FormTags tags
protected SpawnData spawn
protected EVYields evYields
protected com.google.common.collect.ImmutableList<Gender> possibleGenders
protected com.google.common.collect.ImmutableList<GenderProperties> genderProperties
protected com.google.common.collect.ImmutableList<EggGroup> eggGroups
protected com.google.common.collect.ImmutableList<Element> types
protected com.google.common.collect.ImmutableList<Evolution> evolutions
protected com.google.common.collect.ImmutableList<RegistryValue<Species>> preEvolutions
protected java.lang.String defaultBaseForm
protected com.google.common.collect.ImmutableList<java.lang.String> megaItems
protected com.google.common.collect.ImmutableList<java.lang.String> megas
protected Gigantamax gigantamax
protected int eggCycles
protected float weight
protected int catchRate
protected float malePercentage
public transient int minLevel
public transient int maxLevel
public Stats clone()
clone
in class java.lang.Object
public java.lang.String getName()
public boolean isForm(java.lang.String... forms)
public GenderProperties getGenderProperties(Gender gender)
gender
- The gender searching forpublic java.util.List<Gender> getPossibleGenders()
Gender
s this form can takepublic boolean isPossibleGender(Gender gender)
gender
- The gender being checkedpublic boolean isTemporary()
public ImmutableBattleStats getBattleStats()
public ExperienceGroup getExperienceGroup()
public void calculateMinMaxLevels()
public int getHighestFeasibleLevel()
public Moves getMoves()
public FormTags getTags()
public java.util.List<Element> getTypes()
public boolean hasType(Element... types)
public Gigantamax getGigantamax()
public boolean hasMegaForm()
public boolean hasGigantamaxForm()
public java.util.List<net.minecraft.item.Item> getMegaItems()
public java.util.Optional<Stats> getMegaForm(net.minecraft.item.Item item)
public java.util.List<Stats> getMegaForms()
public java.util.Optional<Stats> getGigantamaxForm()
public Stats getRandomMegaForm()
public Dimensions getDimensions()
public Abilities getAbilities()
public float getWeight()
public java.util.List<EggGroup> getEggGroups()
EggGroup
of this formpublic java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public java.lang.String getLocalizedName()
getLocalizedName
in interface ITranslatable
public net.minecraft.util.text.TranslationTextComponent getTranslatedName()
ITranslatable
getTranslatedName
in interface ITranslatable
protected void setParentSpecies(Species parent)
public Species getParentSpecies()
public boolean is(java.lang.String... names)
names
- The names of formspublic boolean is(Stats... forms)
forms
- The forms to checkpublic boolean is(boolean speciesEquality, Stats... forms)
speciesEquality
- The parent species have to be equal for them to matchforms
- The forms being checkedpublic java.util.List<Evolution> getEvolutions()
public <T extends EvoCondition> java.util.Optional<T> getFirstEvolutionConditionOfType(java.lang.Class<T> type)
public void registerModels()
public boolean isDefault()
public Movement getMovement()
Movement
settings of the formpublic AggressionChances getAggression()
AggressionChances
of the formpublic SpawnData getSpawn()
public int getEggCycles()
public float getHoverHeight()
public int getCatchRate()
public float getMalePercentage()
Gender.MALE
public boolean isFemaleOnly()
Gender.FEMALE
public boolean isMaleOnly()
Gender.MALE
public boolean isGenderless()
Gender.NONE
public java.lang.String getDefaultBaseForm()
public EVYields getEVYields()
public Gender getDefaultGender()
public GenderProperties getDefaultGenderProperties()
public Gender getFirstGender()
public GenderProperties getFirstGenderProperties()
public java.util.List<GenderProperties> getGenderProperties()
public Species getBaseEvolution()
public java.util.List<Species> getPreEvolutions()
public boolean isRegional()
public boolean isGalarian()
this#getTags()#isGalarian()
and Tags.GALARIAN
public boolean isAlolan()
this#getTags()#isAlolan()
and Tags.ALOLAN
public boolean isHisuian()
this#getTags()#isHisuian()
()} and Tags.HISUIAN
public boolean isPaldean()
this#getTags()#isPaldean()
()} ()} and Tags.PALDEAN
public java.lang.String getRegionalTag()
this#getTags()#getRegionalTag()
public boolean hasTag(java.lang.String... tags)
tags
- The tags to checkpublic boolean hasChild(Species species)
species
- The child species being checkedpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object