public class PokemonBase extends java.lang.Object implements ITranslatable
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Integer,DataSync<?>> |
dataSyncMap |
protected DataSync<java.lang.Byte> |
dsForm |
protected DataSync<java.lang.Byte> |
dsGender |
protected DataSync<java.lang.Integer> |
dsSpecies |
protected int |
form
The Pokémon's form index.
|
protected IEnumForm |
formEnum |
protected Gender |
gender
The gender if relevant.
|
protected EnumSpecies |
species
The Pokémon's pokemon.
|
Constructor and Description |
---|
PokemonBase() |
PokemonBase(EnumSpecies pokemon)
Initializes a Pokémon in its default form.
|
PokemonBase(EnumSpecies species,
int form,
Gender gender) |
Modifier and Type | Method and Description |
---|---|
PokemonBase |
copyBase()
Returns a copy of the PokemonBase instance.
|
boolean |
dataManagerChange(net.minecraft.network.datasync.DataParameter<?> key,
java.lang.Object value) |
BaseStats |
getBaseStats() |
int |
getForm() |
IEnumForm |
getFormEnum() |
Gender |
getGender() |
EnumSpecies |
getSpecies() |
java.lang.String |
getUnlocalizedName() |
boolean |
isPokemon(EnumSpecies... species) |
void |
readFromNBT(net.minecraft.nbt.NBTTagCompound nbt) |
void |
registerDataParameters(java.util.Map<java.lang.String,net.minecraft.network.datasync.DataParameter<?>> map) |
void |
setForm(IEnumForm form) |
void |
setForm(int form) |
void |
setGender(Gender gender) |
void |
setSpecies(EnumSpecies species) |
void |
setSpecies(EnumSpecies species,
boolean overwriteExistingData) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound nbt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocalizedName, getTranslatedName
protected EnumSpecies species
protected int form
protected transient IEnumForm formEnum
protected Gender gender
protected java.util.Map<java.lang.Integer,DataSync<?>> dataSyncMap
protected final transient DataSync<java.lang.Integer> dsSpecies
protected final transient DataSync<java.lang.Byte> dsForm
protected final transient DataSync<java.lang.Byte> dsGender
public PokemonBase()
public PokemonBase(EnumSpecies pokemon)
pokemon
- The Pokémon's pokemon.public PokemonBase(EnumSpecies species, int form, Gender gender)
public EnumSpecies getSpecies()
public void setSpecies(EnumSpecies species)
public void setSpecies(EnumSpecies species, boolean overwriteExistingData)
public int getForm()
public void setForm(int form)
public IEnumForm getFormEnum()
public void setForm(IEnumForm form)
public Gender getGender()
public void setGender(Gender gender)
public BaseStats getBaseStats()
public boolean isPokemon(EnumSpecies... species)
public void readFromNBT(net.minecraft.nbt.NBTTagCompound nbt)
public net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound nbt)
public PokemonBase copyBase()
public void registerDataParameters(java.util.Map<java.lang.String,net.minecraft.network.datasync.DataParameter<?>> map)
public boolean dataManagerChange(net.minecraft.network.datasync.DataParameter<?> key, java.lang.Object value)
public java.lang.String getUnlocalizedName()
getUnlocalizedName
in interface ITranslatable