public class Pokemon extends PokemonBase
Modifier and Type | Field and Description |
---|---|
static EnumUpdateType[] |
ABILITY |
protected BonusStats |
bonusStats |
protected net.minecraft.util.RegistryKey<net.minecraft.world.World> |
dimension |
protected EnumRibbonType |
displayedRibbon |
protected boolean |
doesLevel |
protected int |
dynamaxLevel |
protected java.lang.Integer |
eggSteps |
static EnumUpdateType[] |
EMPTY |
protected int |
entityID |
protected int |
experience |
protected ExtraStats |
extraStats |
protected java.util.ArrayList<java.lang.String> |
flags |
static EnumUpdateType[] |
FORM |
protected int |
friendship |
protected boolean |
gigantamaxFactor |
protected EnumGrowth |
growth |
protected int |
health |
protected net.minecraft.item.ItemStack |
heldItem |
int |
lastBattleCrits |
protected int |
level |
protected Nature |
mintNature |
protected Moveset |
moveset |
protected java.util.HashMap<java.lang.String,net.minecraft.util.Tuple<java.lang.Long,java.lang.Long>> |
moveSkillCooldownData |
protected Nature |
nature |
protected net.minecraft.util.text.ITextComponent |
nickname |
protected java.lang.String |
originalTrainerName |
protected java.util.UUID |
originalTrainerUUID |
protected PermanentStats |
permanentStats |
protected net.minecraft.nbt.CompoundNBT |
persistentData |
protected PokemonLevel |
pokemonLevelContainer |
protected Pokerus |
pokerus |
protected StoragePosition |
position |
protected java.util.Set<EnumRibbonType> |
ribbons |
static EnumUpdateType[] |
STATS |
protected StatusPersist |
status |
protected PokemonStorage |
storage |
static DataSync<? extends AbstractBaseEntity,java.util.Optional<java.util.UUID>> |
SYNC_ENTITY_UUID |
static DataSync<? extends AbstractBaseEntity,java.lang.Integer> |
SYNC_EXP |
static DataSync<? extends AbstractBaseEntity,EnumGrowth> |
SYNC_GROWTH |
static DataSync<? extends AbstractBaseEntity,java.lang.Float> |
SYNC_HEALTH |
static DataSync<? extends AbstractBaseEntity,java.lang.Integer> |
SYNC_LEVEL |
static DataSync<? extends AbstractBaseEntity,net.minecraft.util.text.ITextComponent> |
SYNC_NICK_NAME |
static DataSync<? extends AbstractBaseEntity,EnumRibbonType> |
SYNC_RIBBON |
protected java.util.UUID |
uuid |
ball, eggCycles, form, gender, palette, species, SYNC_POKEMON_BASE
Modifier | Constructor and Description |
---|---|
protected |
Pokemon()
This constructor is STRONGLY discouraged, and exists only for JSON deserialization.
|
protected |
Pokemon(java.util.UUID uuid) |
protected |
Pokemon(java.util.UUID uuid,
Species species) |
Modifier and Type | Method and Description |
---|---|
void |
addEggSteps(int steps,
int cycleMultiplier) |
void |
addFlag(java.lang.String key) |
boolean |
addRibbon(EnumRibbonType ribbon)
Adds a ribbon to this Pokémon and sets it as the displayed ribbon.
|
boolean |
addRibbon(EnumRibbonType ribbon,
boolean shouldDisplayRibbon)
Adds a ribbon to this Pokémon.
|
boolean |
canBattle() |
boolean |
canGigantamax() |
void |
changeDynamaxLevel(int dynamaxLevel) |
void |
decreaseFriendship(int amount) |
boolean |
doesLevel() |
void |
evolve(PokemonSpecification to) |
Ability |
getAbility() |
java.lang.String |
getAbilityName() |
Nature |
getBaseNature() |
BonusStats |
getBonusStats() |
EnumRibbonType |
getDisplayedRibbon() |
java.lang.String |
getDisplayName() |
int |
getDynamaxLevel() |
java.lang.String |
getEggDescription()
Gets the PokéChecker description translation key of an Egg.
|
int |
getEggSteps() |
int |
getEntityID() |
<T extends Evolution> |
getEvolutions(java.lang.Class<T> type) |
EVStore |
getEVs() |
int |
getExperience() |
float |
getExperienceFraction() |
int |
getExperienceToLevelUp() |
ExtraStats |
getExtraStats() |
<T extends ExtraStats> |
getExtraStats(java.lang.Class<T> type) |
net.minecraft.util.text.ITextComponent |
getFormattedNickname()
Gets the formatted nickname of the Pokemon
|
int |
getFriendship() |
EnumGrowth |
getGrowth() |
int |
getHealth() |
float |
getHealthPercentage() |
net.minecraft.item.ItemStack |
getHeldItem() |
HeldItem |
getHeldItemAsItemHeld()
Gets the ItemHeld type of the item the Pokémon is holding.
|
int |
getHighestOffensiveStat() |
IVStore |
getIVs() |
int |
getMaxHealth() |
Nature |
getMintNature() |
Moveset |
getMoveset() |
double |
getMoveSkillCooldownRatio(MoveSkill moveSkill) |
int |
getMoveSkillCooldownTicks(MoveSkill moveSkill) |
Nature |
getNature()
Gives the active nature of this pokemon, Use either
getBaseNature()
or getMintNature() if you need a specific value. |
java.lang.String |
getNickname()
Deprecated.
|
PixelmonEntity |
getOrCreatePixelmon() |
PixelmonEntity |
getOrCreatePixelmon(net.minecraft.entity.Entity parent) |
PixelmonEntity |
getOrCreatePixelmon(net.minecraft.world.World world,
double x,
double y,
double z) |
PixelmonEntity |
getOrCreatePixelmon(net.minecraft.world.World world,
double x,
double y,
double z,
float rotationYaw,
float rotationPitch)
Gets the entity attached to this Pokémon, or spawns it if it does not exist in the given world.
|
java.lang.String |
getOriginalTrainer() |
java.util.UUID |
getOriginalTrainerUUID() |
PixelmonEntity |
getOrSpawnPixelmon(net.minecraft.entity.Entity parent) |
PixelmonEntity |
getOrSpawnPixelmon(net.minecraft.world.World world,
double x,
double y,
double z) |
PixelmonEntity |
getOrSpawnPixelmon(net.minecraft.world.World world,
double x,
double y,
double z,
float rotationYaw,
float rotationPitch)
Gets the entity attached to this Pokémon, or spawns it if it does not exist in the given world.
|
java.lang.String |
getOwnerName() |
net.minecraft.entity.player.ServerPlayerEntity |
getOwnerPlayer() |
java.util.UUID |
getOwnerPlayerUUID() |
NPCTrainer |
getOwnerTrainer() |
java.util.UUID |
getOwnerTrainerUUID() |
net.minecraft.nbt.CompoundNBT |
getPersistentData() |
java.util.Optional<PixelmonEntity> |
getPixelmonEntity() |
java.util.Optional<PixelmonWrapper> |
getPixelmonWrapper() |
int |
getPokemonLevel() |
PokemonLevel |
getPokemonLevelContainer() |
Pokerus |
getPokerus() |
StoragePosition |
getPosition() |
java.util.List<ImmutableAttack> |
getRelearnableMoves() |
java.util.Set<EnumRibbonType> |
getRibbons() |
net.minecraft.util.ResourceLocation |
getSprite()
Gets the relevant sprite for the
PokemonBase |
int |
getStat(BattleStatsType stat) |
PermanentStats |
getStats() |
StatusPersist |
getStatus() |
PokemonStorage |
getStorage() |
net.minecraft.util.Tuple<PokemonStorage,StoragePosition> |
getStorageAndPosition() |
java.util.UUID |
getUUID() |
net.minecraft.world.World |
getWorld() |
boolean |
hasFlag(java.lang.String key) |
boolean |
hasGigantamaxFactor() |
boolean |
hasHiddenAbility() |
boolean |
hasNoDrops()
Checks if the Pokemon has no drops
|
void |
hatchEgg() |
void |
hatchEgg(boolean force) |
void |
heal() |
boolean |
ifEntityExists(java.util.function.Consumer<PixelmonEntity> action)
Executes code if the entity representing this Pokémon exists.
|
void |
increaseFriendship(int amount) |
Pokemon |
initialize(InitializeCategory... initializeCategories) |
boolean |
isFainted()
Checks if the Pokemon has fainted
|
boolean |
isFriendshipHighEnoughToEvolve() |
boolean |
isLegendary() |
boolean |
isLegendary(boolean excludeMythicals) |
boolean |
isMega() |
boolean |
isMoveSkillCoolingDown(MoveSkill moveSkill) |
boolean |
isMythical() |
boolean |
isOriginalTrainer(net.minecraft.entity.player.PlayerEntity player) |
boolean |
isUltraBeast() |
boolean |
isUnbreedable()
Checks if the Pokemon is unbreedable
Quick redirect for
hasFlag(String) |
boolean |
isUncatchable()
Checks if the Pokemon is uncatchable
Quick redirect for
hasFlag(String) |
boolean |
isUntradeable()
Checks if the Pokemon is untradeable
Quick redirect for
hasFlag(String) |
Pokemon |
makeEgg()
Turns the pokemon into an egg
|
void |
markDirty(EnumUpdateType... dataTypes) |
Pokemon |
readFromByteBuffer(net.minecraft.network.PacketBuffer buf,
EnumUpdateType... data) |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
removeFlag(java.lang.String key) |
void |
removeNickname()
Removes the Pokemon's current nickname
|
boolean |
removeRibbon(EnumRibbonType ribbon)
Removes a ribbon from this Pokémon.
|
void |
rerollMoveset() |
void |
retrieve() |
void |
setAbility(Ability ability) |
void |
setAbility(java.util.Optional<Ability> ability) |
void |
setBall(PokeBall caughtBall)
Sets the ball the pokemon is in
|
void |
setBonusStats(BonusStats bonusStats) |
void |
setDisplayedRibbon(EnumRibbonType ribbon)
Sets the ribbon that will be displayed on this Pokemon.
|
void |
setDoesLevel(boolean doesLevel) |
void |
setDynamaxLevel(int dynamaxLevel) |
void |
setEggCycles(java.lang.Integer eggCycles,
boolean event)
Sets the egg cycles of the pokemon
|
void |
setEggSteps(java.lang.Integer eggSteps) |
void |
setExperience(int experience) |
void |
setForm(Stats form) |
boolean |
setForm(java.lang.String form) |
void |
setFriendship(int friendship) |
void |
setGender(Gender gender) |
void |
setGigantamaxFactor(boolean gigantamaxFactor) |
void |
setGrowth(EnumGrowth growth) |
void |
setHealth(int health) |
void |
setHealthCache(int health) |
void |
setHealthPercentage(float healthPercentage) |
void |
setHeldItem(net.minecraft.item.ItemStack stack)
Sets the Pokémon's held item after firing
HeldItemChangedEvent . |
void |
setLevel(int level) |
void |
setLevelNum(int level) |
void |
setMintNature(Nature nature) |
void |
setMoveset(Moveset moveset) |
void |
setMoveSkillCooldown(MoveSkill moveSkill,
int cooldownTicks) |
void |
setNature(Nature nature) |
void |
setNickname(net.minecraft.util.text.ITextComponent nickname)
Sets the Pokemon's nickname to the new
ITextComponent |
void |
setNickname(java.lang.String nickname)
Deprecated.
|
void |
setOriginalTrainer(net.minecraft.entity.player.PlayerEntity player) |
void |
setOriginalTrainer(java.util.UUID originalTrainerUUID,
java.lang.String originalTrainerName) |
boolean |
setPalette(PaletteProperties paletteProperties)
Sets the palette properties for the Pokemon
|
boolean |
setPalette(java.lang.String palette) |
boolean |
setPalette(java.lang.String palette,
boolean sync) |
void |
setPokerus(Pokerus pokerus) |
void |
setRibbons(EnumRibbonType... ribbons)
Sets the ribbon that this Pokemon will have.
|
void |
setRibbons(java.util.Set<EnumRibbonType> ribbons)
Sets the ribbons that this Pokemon will have.
|
boolean |
setShiny() |
boolean |
setShiny(boolean shiny) |
void |
setSpecies(RegistryValue<Species> species,
boolean doSpeciesInitialization) |
void |
setSpecies(Species species,
boolean doSpeciesInitialization) |
void |
setStatus(StatusPersist status) |
void |
setStorage(PokemonStorage storage,
StoragePosition position) |
Pokemon |
setUUID(java.util.UUID uuid) |
java.lang.String |
toString() |
void |
tryEvolution()
Attempts to evolve the Pokémon if possible.
|
void |
updateDimensionAndEntityID(net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension,
int entityID) |
void |
writeToByteBuffer(net.minecraft.network.PacketBuffer buf,
EnumUpdateType... data) |
net.minecraft.nbt.CompoundNBT |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
Writes the values of this class into an
CompoundNBT |
fromNBT, getBall, getEggCycles, getForm, getGender, getGenderProperties, getPalette, getSpecies, getTranslationKey, hasChild, hasPalette, invalidate, isDefaultForm, isDefaultPalette, isEgg, isPalette, isPokemon, isPokemon, isPokemonOptional, isPokemonOptional, isPokemonOptional, isPokemonValue, isShiny, setEggCycles, toPokemon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocalizedName, getTranslatedName
public static final DataSync<? extends AbstractBaseEntity,EnumGrowth> SYNC_GROWTH
public static final DataSync<? extends AbstractBaseEntity,java.lang.Integer> SYNC_LEVEL
public static final DataSync<? extends AbstractBaseEntity,java.lang.Integer> SYNC_EXP
public static final DataSync<? extends AbstractBaseEntity,java.util.Optional<java.util.UUID>> SYNC_ENTITY_UUID
public static final DataSync<? extends AbstractBaseEntity,net.minecraft.util.text.ITextComponent> SYNC_NICK_NAME
public static final DataSync<? extends AbstractBaseEntity,EnumRibbonType> SYNC_RIBBON
public static final DataSync<? extends AbstractBaseEntity,java.lang.Float> SYNC_HEALTH
public static final EnumUpdateType[] STATS
public static final EnumUpdateType[] ABILITY
public static final EnumUpdateType[] FORM
public static final EnumUpdateType[] EMPTY
protected java.util.UUID uuid
protected Moveset moveset
protected Nature nature
protected Nature mintNature
protected EnumGrowth growth
protected int friendship
protected PokemonLevel pokemonLevelContainer
protected int level
protected int experience
protected int dynamaxLevel
protected boolean gigantamaxFactor
protected PermanentStats permanentStats
protected BonusStats bonusStats
protected java.lang.Integer eggSteps
protected net.minecraft.item.ItemStack heldItem
protected StatusPersist status
protected ExtraStats extraStats
protected net.minecraft.util.text.ITextComponent nickname
protected java.lang.String originalTrainerName
protected java.util.UUID originalTrainerUUID
protected Pokerus pokerus
protected int health
protected boolean doesLevel
protected volatile java.util.HashMap<java.lang.String,net.minecraft.util.Tuple<java.lang.Long,java.lang.Long>> moveSkillCooldownData
protected java.util.ArrayList<java.lang.String> flags
protected java.util.Set<EnumRibbonType> ribbons
protected EnumRibbonType displayedRibbon
protected net.minecraft.nbt.CompoundNBT persistentData
public int lastBattleCrits
protected transient net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension
protected transient int entityID
protected transient PokemonStorage storage
protected transient StoragePosition position
protected Pokemon()
protected Pokemon(java.util.UUID uuid)
protected Pokemon(java.util.UUID uuid, Species species)
public java.util.Optional<PixelmonEntity> getPixelmonEntity()
public java.util.Optional<PixelmonWrapper> getPixelmonWrapper()
public PixelmonEntity getOrSpawnPixelmon(net.minecraft.world.World world, double x, double y, double z, float rotationYaw, float rotationPitch)
Caveats:
world
- The world the entity is needed in.world
is null.public PixelmonEntity getOrSpawnPixelmon(net.minecraft.world.World world, double x, double y, double z)
public PixelmonEntity getOrSpawnPixelmon(net.minecraft.entity.Entity parent)
public PixelmonEntity getOrCreatePixelmon(net.minecraft.world.World world, double x, double y, double z, float rotationYaw, float rotationPitch)
Caveats:
world
- The world the entity is needed in.world
is null.public PixelmonEntity getOrCreatePixelmon(net.minecraft.world.World world, double x, double y, double z)
public PixelmonEntity getOrCreatePixelmon()
public PixelmonEntity getOrCreatePixelmon(net.minecraft.entity.Entity parent)
public void updateDimensionAndEntityID(net.minecraft.util.RegistryKey<net.minecraft.world.World> dimension, int entityID)
public int getEntityID()
public net.minecraft.world.World getWorld()
public boolean ifEntityExists(java.util.function.Consumer<PixelmonEntity> action)
action
- The action to carry out if the entity exists.public Pokemon initialize(InitializeCategory... initializeCategories)
public Pokemon makeEgg()
PokemonBase
makeEgg
in class PokemonBase
public void evolve(PokemonSpecification to)
public java.util.UUID getUUID()
public Pokemon setUUID(java.util.UUID uuid)
public java.util.UUID getOwnerTrainerUUID()
public NPCTrainer getOwnerTrainer()
public java.util.UUID getOwnerPlayerUUID()
public net.minecraft.entity.player.ServerPlayerEntity getOwnerPlayer()
public java.lang.String getDisplayName()
@Deprecated @Nullable public java.lang.String getNickname()
getFormattedNickname()
public net.minecraft.util.text.ITextComponent getFormattedNickname()
public void removeNickname()
@Deprecated public void setNickname(java.lang.String nickname)
setNickname(ITextComponent)
ITextComponent
nickname
- The new nicknamepublic void setNickname(net.minecraft.util.text.ITextComponent nickname)
ITextComponent
nickname
- The new nicknamepublic java.lang.String getOwnerName()
public void setSpecies(RegistryValue<Species> species, boolean doSpeciesInitialization)
public void setSpecies(Species species, boolean doSpeciesInitialization)
public void setForm(Stats form)
setForm
in class PokemonBase
public boolean setForm(java.lang.String form)
setForm
in class PokemonBase
public void setGender(Gender gender)
public void setEggCycles(java.lang.Integer eggCycles, boolean event)
PokemonBase
setEggCycles
in class PokemonBase
eggCycles
- The new egg cycles numberpublic int getEggSteps()
public void setEggSteps(java.lang.Integer eggSteps)
public void addEggSteps(int steps, int cycleMultiplier)
public void hatchEgg()
public void hatchEgg(boolean force)
public java.lang.String getEggDescription()
@Nonnull public net.minecraft.item.ItemStack getHeldItem()
@Nonnull public HeldItem getHeldItemAsItemHeld()
NoItem
if this is not holding anything.public void setHeldItem(net.minecraft.item.ItemStack stack)
HeldItemChangedEvent
.
For out-of-battle use only; use the PixelmonWrapper
version for in-battle.stack
- The held item to set. Null or ItemStack.EMPTY to remove.public EnumGrowth getGrowth()
public void setGrowth(EnumGrowth growth)
public Nature getNature()
getBaseNature()
or getMintNature()
if you need a specific value.public Nature getBaseNature()
public Nature getMintNature()
public void setNature(Nature nature)
public void setMintNature(Nature nature)
public Pokerus getPokerus()
public void setPokerus(Pokerus pokerus)
public Ability getAbility()
public java.lang.String getAbilityName()
public void setAbility(Ability ability)
public void setAbility(java.util.Optional<Ability> ability)
public IVStore getIVs()
public EVStore getEVs()
public BonusStats getBonusStats()
public void setBonusStats(BonusStats bonusStats)
public int getHighestOffensiveStat()
public int getStat(BattleStatsType stat)
public PermanentStats getStats()
public ExtraStats getExtraStats()
public <T extends ExtraStats> java.util.Optional<T> getExtraStats(java.lang.Class<T> type)
public void setExperience(int experience)
public int getExperience()
public int getExperienceToLevelUp()
public float getExperienceFraction()
@Nonnull public StatusPersist getStatus()
public void setStatus(StatusPersist status)
public int getPokemonLevel()
public PokemonLevel getPokemonLevelContainer()
public void setLevelNum(int level)
public void setLevel(int level)
public int getDynamaxLevel()
public void setDynamaxLevel(int dynamaxLevel)
public void changeDynamaxLevel(int dynamaxLevel)
public boolean hasGigantamaxFactor()
public boolean canGigantamax()
public void setGigantamaxFactor(boolean gigantamaxFactor)
public boolean canBattle()
public boolean isLegendary()
public boolean isLegendary(boolean excludeMythicals)
public boolean isMythical()
public boolean isUltraBeast()
public boolean isMega()
public boolean setPalette(PaletteProperties paletteProperties)
PokemonBase
setPalette
in class PokemonBase
paletteProperties
- The new palette propertiespublic boolean setPalette(java.lang.String palette)
public boolean setPalette(java.lang.String palette, boolean sync)
public boolean setShiny()
public boolean setShiny(boolean shiny)
public Moveset getMoveset()
public int getFriendship()
public void setFriendship(int friendship)
public void increaseFriendship(int amount)
public void decreaseFriendship(int amount)
public boolean isFriendshipHighEnoughToEvolve()
@Nullable public java.lang.String getOriginalTrainer()
@Nullable public java.util.UUID getOriginalTrainerUUID()
public void setOriginalTrainer(java.util.UUID originalTrainerUUID, java.lang.String originalTrainerName)
public void setOriginalTrainer(net.minecraft.entity.player.PlayerEntity player)
public boolean isOriginalTrainer(net.minecraft.entity.player.PlayerEntity player)
public void setBall(PokeBall caughtBall)
PokemonBase
setBall
in class PokemonBase
caughtBall
- The new pokeballpublic int getHealth()
public float getHealthPercentage()
public void heal()
public void setHealthCache(int health)
public void setHealth(int health)
public void setHealthPercentage(float healthPercentage)
public int getMaxHealth()
public boolean doesLevel()
public void setDoesLevel(boolean doesLevel)
public java.util.List<ImmutableAttack> getRelearnableMoves()
public <T extends Evolution> java.util.ArrayList<T> getEvolutions(java.lang.Class<T> type)
public void tryEvolution()
public net.minecraft.nbt.CompoundNBT getPersistentData()
public void retrieve()
public void setStorage(PokemonStorage storage, StoragePosition position)
@Nullable public PokemonStorage getStorage()
@Nullable public StoragePosition getPosition()
@Nullable public net.minecraft.util.Tuple<PokemonStorage,StoragePosition> getStorageAndPosition()
public boolean isMoveSkillCoolingDown(MoveSkill moveSkill)
public int getMoveSkillCooldownTicks(MoveSkill moveSkill)
public double getMoveSkillCooldownRatio(MoveSkill moveSkill)
public void setMoveSkillCooldown(MoveSkill moveSkill, int cooldownTicks)
public void addFlag(java.lang.String key)
public void removeFlag(java.lang.String key)
public boolean hasFlag(java.lang.String key)
public void markDirty(EnumUpdateType... dataTypes)
public java.util.Set<EnumRibbonType> getRibbons()
for the ribbon that is currently being displayed.
public EnumRibbonType getDisplayedRibbon()
public void setRibbons(java.util.Set<EnumRibbonType> ribbons)
ribbons
- The ribbons to set.public void setRibbons(EnumRibbonType... ribbons)
ribbons
- The ribbon to set.public void setDisplayedRibbon(EnumRibbonType ribbon)
ribbon
- The ribbon to set.public boolean addRibbon(EnumRibbonType ribbon)
ribbon
- The ribbon type to add.true
if this ribbon was added, false
if it already had the ribbon or could not be added.public boolean addRibbon(EnumRibbonType ribbon, boolean shouldDisplayRibbon)
ribbon
- The ribbon type to add.shouldDisplayRibbon
- If the ribbon added should be immediately displayed. (defaults = true)true
if this ribbon was added, false
if it already had the ribbon or could not be added.public boolean removeRibbon(EnumRibbonType ribbon)
ribbon
- The ribbon type to remove.true
if the ribbon was removed, false
if this Pokémon did not have the ribbon.public net.minecraft.util.ResourceLocation getSprite()
PokemonBase
PokemonBase
getSprite
in class PokemonBase
ResourceLocation
of the spritepublic boolean isFainted()
public boolean isUnbreedable()
hasFlag(String)
public boolean isUntradeable()
hasFlag(String)
public boolean isUncatchable()
hasFlag(String)
public boolean hasNoDrops()
public void writeToByteBuffer(net.minecraft.network.PacketBuffer buf, EnumUpdateType... data)
public Pokemon readFromByteBuffer(net.minecraft.network.PacketBuffer buf, EnumUpdateType... data)
public void readFromNBT(net.minecraft.nbt.CompoundNBT nbt)
public net.minecraft.nbt.CompoundNBT writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
PokemonBase
CompoundNBT
writeToNBT
in class PokemonBase
nbt
- The nbt being written topublic java.lang.String toString()
toString
in class java.lang.Object
public boolean hasHiddenAbility()
public void setMoveset(Moveset moveset)
public void rerollMoveset()