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 Ribbon |
displayedRibbon |
protected boolean |
doesLevel |
protected int |
dynamaxLevel |
static net.minecraft.util.text.ITextComponent |
EGG |
protected java.lang.Integer |
eggSteps |
static EnumUpdateType[] |
EMPTY |
protected int |
entityID |
protected int |
experience |
protected ExtraStats |
extraStats |
protected java.util.List<java.lang.String> |
flags |
static EnumUpdateType[] |
FORM |
protected int |
friendship |
protected boolean |
gigantamaxFactor |
protected EnumGrowth |
growth |
protected boolean |
ha |
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.List<Ribbon> |
ribbons |
protected int |
slot |
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,java.lang.String[]> |
SYNC_FLAGS |
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,Ribbon> |
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(Ribbon ribbon)
Adds a ribbon to this Pokémon and sets it as the displayed ribbon.
|
boolean |
addRibbon(Ribbon ribbon,
boolean shouldDisplayRibbon)
Adds a ribbon to this Pokémon.
|
boolean |
addRibbon(RibbonType ribbonType) |
boolean |
addRibbon(RibbonType ribbonType,
boolean displayRibbon) |
boolean |
canBattle() |
boolean |
canGigantamax() |
void |
changeDynamaxLevel(int dynamaxLevel) |
void |
decreaseFriendship(int amount) |
boolean |
doesLevel() |
void |
evolve(PokemonSpecification to) |
Ability |
getAbility() |
java.lang.String |
getAbilityName() |
int |
getAbilitySlot() |
Nature |
getBaseNature() |
BonusStats |
getBonusStats() |
Ribbon |
getDisplayedRibbon()
Gets the Pokemon's selected (displayed) ribbon
If this returns null it means there is no displayed ribbon
|
java.lang.String |
getDisplayName()
Deprecated.
|
net.minecraft.util.text.ITextComponent |
getDisplayNameWithRibbon() |
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) |
java.util.List<java.lang.String> |
getFlags() |
net.minecraft.util.text.ITextComponent |
getFormattedDisplayName() |
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() |
PaletteProperties |
getPalette()
Gets the palette of the pokemon
|
net.minecraft.nbt.CompoundNBT |
getPersistentData() |
java.util.Optional<PixelmonEntity> |
getPixelmonEntity() |
java.util.Optional<PixelmonWrapper> |
getPixelmonWrapper() |
java.util.Optional<PixelmonWrapper> |
getPixelmonWrapperFromPlayerEntity()
Deprecated.
Use
this#getPixelmonWrapper() |
int |
getPokemonLevel() |
PokemonLevel |
getPokemonLevelContainer() |
Pokerus |
getPokerus() |
StoragePosition |
getPosition() |
java.util.List<ImmutableAttack> |
getRelearnableMoves() |
java.util.List<Ribbon> |
getRibbons()
Gets an unmodifiable list of the ribbons that this pokemon has managed to collect
|
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
|
boolean |
hasRibbon(RibbonType ribbonType) |
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 |
isUnbattleable()
Checks if the Pokemon is unbattleable
Quick redirect for
hasFlag(String) |
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) |
void |
overrideAbilitySlot()
Ignores the previously found ability slot for the Pokémon and finds the new one
|
Pokemon |
readFromByteBuffer(net.minecraft.network.PacketBuffer buf,
EnumUpdateType... data) |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
recordAbilitySlot(Ability ability)
Finds the ability slot used for the Pokémon to persist through ability losses
|
void |
removeFlag(java.lang.String key) |
void |
removeNickname()
Removes the Pokemon's current nickname
|
boolean |
removeRibbon(Ribbon ribbon)
Removes a ribbon from this Pokémon.
|
void |
rerollMoveset() |
void |
resetAbility()
Sets a random ability and records the ability slot for future evolutions.
|
void |
retrieve(java.lang.String pokemonRetrievedEventReason) |
void |
setAbility(Ability ability) |
void |
setAbility(java.util.Optional<Ability> ability) |
void |
setAbilitySlot(int abilitySlot) |
void |
setBall(PokeBall caughtBall)
Sets the ball the pokemon is in
|
void |
setBonusStats(BonusStats bonusStats) |
void |
setDisplayedRibbon(Ribbon 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 |
setHA(boolean isHiddenAbility) |
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) |
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, 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,Ribbon> SYNC_RIBBON
public static final DataSync<? extends AbstractBaseEntity,java.lang.Float> SYNC_HEALTH
public static final DataSync<? extends AbstractBaseEntity,java.lang.String[]> SYNC_FLAGS
public static final EnumUpdateType[] STATS
public static final EnumUpdateType[] ABILITY
public static final EnumUpdateType[] FORM
public static final EnumUpdateType[] EMPTY
public static final net.minecraft.util.text.ITextComponent EGG
protected java.util.UUID uuid
protected Moveset moveset
protected Nature nature
protected int slot
protected boolean ha
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.List<java.lang.String> flags
protected java.util.List<Ribbon> ribbons
protected Ribbon 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()
@Deprecated public java.util.Optional<PixelmonWrapper> getPixelmonWrapperFromPlayerEntity()
this#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()
@Deprecated public java.lang.String getDisplayName()
public net.minecraft.util.text.ITextComponent getFormattedDisplayName()
public net.minecraft.util.text.ITextComponent getDisplayNameWithRibbon()
@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 void setHA(boolean isHiddenAbility)
public void setAbilitySlot(int abilitySlot)
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(java.lang.String pokemonRetrievedEventReason)
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.List<Ribbon> getRibbons()
for the ribbon that is currently being displayed.
public boolean hasRibbon(RibbonType ribbonType)
@Nullable public Ribbon getDisplayedRibbon()
public void setDisplayedRibbon(Ribbon ribbon)
ribbon
- The ribbon to set.public boolean addRibbon(RibbonType ribbonType)
public boolean addRibbon(RibbonType ribbonType, boolean displayRibbon)
public boolean addRibbon(Ribbon 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(Ribbon 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(Ribbon 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 PaletteProperties getPalette()
PokemonBase
getPalette
in class PokemonBase
public boolean isFainted()
public boolean isUnbreedable()
hasFlag(String)
public boolean isUntradeable()
hasFlag(String)
public boolean isUncatchable()
hasFlag(String)
public boolean isUnbattleable()
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 int getAbilitySlot()
public void recordAbilitySlot(Ability ability)
ability
- The ability to findpublic void overrideAbilitySlot()
public void resetAbility()
public void setMoveset(Moveset moveset)
public void rerollMoveset()
public java.util.List<java.lang.String> getFlags()