typemodifiers| Constructor and Description |
|---|
StatusPersist(StatusType type)
Initializes the status.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addStatus(PixelmonWrapper user,
PixelmonWrapper target,
Attack attack,
boolean showMessage,
java.lang.String alreadyMessage,
java.lang.String addMessage)
Adds the status to the target if possible.
|
protected boolean |
alreadyHasStatus(PixelmonWrapper pw)
Checks if the Pokémon already has the status.
|
boolean |
isStatus(StatusType type) |
static StatusPersist |
readStatusFromNBT(net.minecraft.nbt.CompoundNBT nbt)
Reads the Pokémon's status from NBT.
|
abstract StatusPersist |
restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
Loads the status from NBT.
|
void |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
Writes the status to NBT.
|
allowsStatChange, applyBeforeEffect, applyEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applyRepeatedEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getCureMessage, getCureMessageItem, getEffectiveTypes, getNewInstance, ignoreStatus, isImmune, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyPowerAndAccuracyUser, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitchingapplyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness, weightEffectpublic StatusPersist(StatusType type)
type - The status's type.public void writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
nbt - The NBT tag to write to.public abstract StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
nbt - The NBT tag to read from.public static StatusPersist readStatusFromNBT(net.minecraft.nbt.CompoundNBT nbt)
nbt - The NBT tag to read from.protected boolean addStatus(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage, java.lang.String alreadyMessage, java.lang.String addMessage)
user - The Pokémon causing the status.target - The Pokémon to add the status to.attack - The move causing the status.showMessage - Whether to show messages depending on what occurs.alreadyMessage - The message to show if the target already has the status.addMessage - The message to show if the status is added successfully.public boolean isStatus(StatusType type)
protected boolean alreadyHasStatus(PixelmonWrapper pw)
pw - The Pokémon to check.