public class Burn extends StatusPersist
type
modifiers
Constructor and Description |
---|
Burn()
Initializes the status.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(PixelmonWrapper user,
PixelmonWrapper target)
Causes various effects during the move.
|
void |
applyRepeatedEffect(PixelmonWrapper pw)
Triggered at the end of every turn.
|
static boolean |
burn(PixelmonWrapper user,
PixelmonWrapper target,
Attack attack,
boolean showMessage)
Burns the target if possible.
|
java.lang.String |
getCureMessage()
Gets the lang key for the message that is displayed when the status is cured.
|
java.lang.String |
getCureMessageItem()
Gets the lang key for the message that is displayed when the status is cured with a held item.
|
boolean |
isImmune(PixelmonWrapper pokemon)
Checks if the Pokémon is immune to the status.
|
int[] |
modifyPowerAndAccuracyUser(int power,
int accuracy,
PixelmonWrapper user,
PixelmonWrapper target,
Attack attack)
Modifies the power and accuracy of the attack used by the statused Pokémon.
|
StatusPersist |
restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
Loads the status from NBT.
|
void |
weightEffect(PixelmonWrapper pw,
MoveChoice userChoice,
java.util.List<MoveChoice> userChoices,
java.util.List<MoveChoice> bestUserChoices,
java.util.List<MoveChoice> opponentChoices,
java.util.List<MoveChoice> bestOpponentChoices)
Determines a weight for the move that has this effect.
|
addStatus, alreadyHasStatus, isStatus, readStatusFromNBT, writeToNBT
allowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getEffectiveTypes, getNewInstance, ignoreStatus, isTeamStatus, isWholeTeamStatus, modifyBaseStats, modifyDamageIncludeFixed, modifyPowerAndAccuracyTarget, modifyStats, modifyStatsCancellable, modifyWeight, onAttackEnd, onAttackUsed, onDamageReceived, onEndOfAttackersTurn, onEndOfTurn, redirectAttack, skipsTurn, stopsForcedSwitches, stopsIncomingAttack, stopsIncomingAttackMessage, stopsIncomingAttackUser, stopsSelfStatusMove, stopsStatusChange, stopsSwitching
applyEarlyEffect, applyEffectAfterAllTargets, applyEffectAfterStatus, applyEffectHitOrMiss, applyEffectStart, applyMissEffect, changeChance, checkChance, dealtDamage, doesPersist, getChance, getWeightWithChance, isChance, modifyDamage, modifyPriority, modifyTypeEffectiveness, modifyTypeEffectiveness
public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBase
applyEffect
in class StatusBase
user
- The move's user.target
- The move's target.public static boolean burn(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage)
user
- The Pokémon causing the burn.target
- The Pokémon to burn.attack
- The attack that caused the burn.showMessage
- Whether to show a message depending on what occurs.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBase
applyRepeatedEffect
in class StatusBase
pw
- The statused Pokémon.public StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
StatusPersist
restoreFromNBT
in class StatusPersist
nbt
- The NBT tag to read from.public int[] modifyPowerAndAccuracyUser(int power, int accuracy, PixelmonWrapper user, PixelmonWrapper target, Attack attack)
StatusBase
modifyPowerAndAccuracyUser
in class StatusBase
power
- The attack's power.accuracy
- The attack's accuracy.user
- The attack's user.target
- The attack's target.attack
- The attack.public boolean isImmune(PixelmonWrapper pokemon)
StatusBase
isImmune
in class StatusBase
pokemon
- The Pokémon to check.public java.lang.String getCureMessage()
StatusBase
getCureMessage
in class StatusBase
public java.lang.String getCureMessageItem()
StatusBase
getCureMessageItem
in class StatusBase
public void weightEffect(PixelmonWrapper pw, MoveChoice userChoice, java.util.List<MoveChoice> userChoices, java.util.List<MoveChoice> bestUserChoices, java.util.List<MoveChoice> opponentChoices, java.util.List<MoveChoice> bestOpponentChoices)
EffectBase
weightEffect
in class EffectBase
pw
- The Pokémon using the move.userChoice
- The move with this effect.userChoices
- All choices the Pokémon has for the turn.bestUserChoices
- The best offensive choices the Pokémon has for the turn.opponentChoices
- All choices the opponent has for the turn.bestOpponentChoices
- The best choices the opponent has for the turn.