public class Poison extends StatusPersist
typemodifiers| Constructor and Description |
|---|
Poison()
Initializes the status.
|
Poison(StatusType type)
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 |
canPoison(PixelmonWrapper user,
PixelmonWrapper target,
Attack attack,
boolean showMessage)
Checks if a Pokémon can be poisoned.
|
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.
|
protected float |
getPoisonDamage(PixelmonWrapper pw)
Gets the amount of damage poison will do in the turn.
|
boolean |
isImmune(PixelmonWrapper pokemon)
Checks if the Pokémon is immune to the status.
|
static boolean |
poison(PixelmonWrapper user,
PixelmonWrapper target,
Attack attack,
boolean showMessage)
Poisons the target if possible.
|
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, writeToNBTallowsStatChange, applyBeforeEffect, applyEffectOnSwitch, applyEndOfBattleEffect, applySwitchOutEffect, canAttackThisTurn, cantMiss, copy, getEffectiveTypes, getNewInstance, ignoreStatus, 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, modifyTypeEffectivenesspublic Poison()
public Poison(StatusType type)
type - The status's type.public void applyEffect(PixelmonWrapper user, PixelmonWrapper target)
EffectBaseapplyEffect in class StatusBaseuser - The move's user.target - The move's target.public static boolean poison(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage)
user - The Pokémon causing the poison.target - The Pokémon to poison.attack - The attack that caused the poison.showMessage - Whether to show a message depending on what occurs.public static boolean canPoison(PixelmonWrapper user, PixelmonWrapper target, Attack attack, boolean showMessage)
user - The user of the poisoning move.target - The Pokémon to be poisoned.attack - The poisoning move.showMessage - Whether to display battle messages if the Pokémon cannot be poisoned.public void applyRepeatedEffect(PixelmonWrapper pw)
StatusBaseapplyRepeatedEffect in class StatusBasepw - The statused Pokémon.protected float getPoisonDamage(PixelmonWrapper pw)
pw - The poisoned Pokémon.public StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundNBT nbt)
StatusPersistrestoreFromNBT in class StatusPersistnbt - The NBT tag to read from.public boolean isImmune(PixelmonWrapper pokemon)
StatusBaseisImmune in class StatusBasepokemon - The Pokémon to check.public java.lang.String getCureMessage()
StatusBasegetCureMessage in class StatusBasepublic java.lang.String getCureMessageItem()
StatusBasegetCureMessageItem in class StatusBasepublic 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)
EffectBaseweightEffect in class EffectBasepw - 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.