public class PokemonCardState extends CommonCardState
Modifier and Type | Field and Description |
---|---|
protected int |
turn |
data, overwriteEnergy, parameters
Constructor and Description |
---|
PokemonCardState(BaseTrainerEffect effect,
TrainerCardState trainer,
int turn) |
PokemonCardState(ImmutableCard card,
int turn) |
PokemonCardState(net.minecraft.network.PacketBuffer buf) |
Modifier and Type | Method and Description |
---|---|
boolean |
abilitiesDisabled() |
void |
addCondition(PokemonCardState attacker,
CardCondition cardCondition,
java.lang.Integer modifier,
GameServerState server) |
void |
addDamage(PokemonCardState attacker,
int damage,
GameServerState server) |
void |
addDamageFromCondition(int d) |
void |
bindPreviousPokemonSprite(net.minecraft.client.Minecraft mc) |
boolean |
canRetreat() |
void |
disableAbilities(boolean disable) |
CardPower |
getAbility() |
java.util.List<CommonCardState> |
getAttachments() |
PokemonAttackStatus[] |
getAttacksStatus() |
CardPower |
getHiddenAbility() |
int |
getPreviousPokemonID() |
net.minecraft.util.ResourceLocation |
getPreviousPokemonSprite() |
Energy |
getResistance() |
CardModifier |
getResistanceModifier() |
int |
getResistanceValue() |
int |
getRetreatCost() |
PokemonCardStatus |
getStatus() |
int |
getTurn() |
Energy |
getWeakness() |
CardModifier |
getWeaknessModifier() |
int |
getWeaknessValue() |
void |
handleEndTurn(PokemonCardState attachTo,
PlayerServerState player,
GameServerState server)
Clear all the parameters stored in the cards when the turns ends, unless the power effects state otherwise
|
void |
setAbility(CardPower cardAbility) |
void |
setCanRetreat(boolean canRetreat) |
void |
setHiddenAbility(CardPower hiddenCardAbility) |
void |
setPreviousPokemonID(int previousPokemonId) |
void |
setResistance(Energy resistance) |
void |
setResistanceModifier(CardModifier resistanceCardModifier) |
void |
setResistanceValue(int resistanceValue) |
void |
setRetreatCost(int retreatCost) |
void |
setStatus(PokemonCardStatus s) |
void |
setWeakness(Energy weakness) |
void |
setWeaknessModifier(CardModifier weaknessCardModifier) |
void |
setWeaknessValue(int weaknessValue) |
void |
transform(ImmutableCard card,
PokemonCardStatus stats) |
protected void |
write(net.minecraft.network.PacketBuffer buf,
boolean faceUp,
boolean writeParams) |
bindPokemonSprite, getCardType, getCode, getData, getDescription, getHP, getMainEnergy, getName, getOverrideModelColor, getParameters, getPokemonID, getPokemonSprite, getRarity, getSecondaryEnergy, getSetID, getTransformation, hasTransformation, isEnergyEquivalence, isNullOrEmpty, setCardType, setCode, setData, setDescription, setHP, setName, setOverrideModelColor, setOverwriteEnergy, setPokemonID, setRarity, setSetID, write
public PokemonCardState(BaseTrainerEffect effect, TrainerCardState trainer, int turn)
public PokemonCardState(ImmutableCard card, int turn)
public PokemonCardState(net.minecraft.network.PacketBuffer buf)
public void transform(ImmutableCard card, PokemonCardStatus stats)
transform
in class CommonCardState
protected void write(net.minecraft.network.PacketBuffer buf, boolean faceUp, boolean writeParams)
write
in class CommonCardState
writeParams
- This is to prevent circular reference when parameters contains this cardpublic void handleEndTurn(PokemonCardState attachTo, PlayerServerState player, GameServerState server)
CommonCardState
handleEndTurn
in class CommonCardState
attachTo
- Pokemon card that this card attach toplayer
- server
- public void addDamage(PokemonCardState attacker, int damage, GameServerState server)
public void addCondition(PokemonCardState attacker, CardCondition cardCondition, java.lang.Integer modifier, GameServerState server)
public void addDamageFromCondition(int d)
public void bindPreviousPokemonSprite(net.minecraft.client.Minecraft mc)
public net.minecraft.util.ResourceLocation getPreviousPokemonSprite()
public java.util.List<CommonCardState> getAttachments()
public int getPreviousPokemonID()
public void setPreviousPokemonID(int previousPokemonId)
public PokemonCardStatus getStatus()
public void setStatus(PokemonCardStatus s)
public PokemonAttackStatus[] getAttacksStatus()
public CardPower getAbility()
getAbility
in class CommonCardState
public void setAbility(CardPower cardAbility)
public boolean abilitiesDisabled()
public void disableAbilities(boolean disable)
public CardPower getHiddenAbility()
public void setHiddenAbility(CardPower hiddenCardAbility)
public Energy getWeakness()
public void setWeakness(Energy weakness)
public CardModifier getWeaknessModifier()
public void setWeaknessModifier(CardModifier weaknessCardModifier)
public int getWeaknessValue()
public void setWeaknessValue(int weaknessValue)
public Energy getResistance()
public void setResistance(Energy resistance)
public CardModifier getResistanceModifier()
public void setResistanceModifier(CardModifier resistanceCardModifier)
public int getResistanceValue()
public void setResistanceValue(int resistanceValue)
public int getRetreatCost()
public void setRetreatCost(int retreatCost)
public int getTurn()
public void setCanRetreat(boolean canRetreat)
public boolean canRetreat()