Class AttachDiscardEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.AttachDiscardEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<AttachDiscardEffect> protected final int
protected final Energy
protected final net.minecraft.tags.TagKey
<ImmutableCard> -
Constructor Summary
ConstructorsConstructorDescriptionAttachDiscardEffect
(net.minecraft.tags.TagKey<ImmutableCard> type, int count, Energy energy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBeforeDamage
(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) boolean
canApply
(List<Object> parameters, CardAttack cardAttack, GameServerState server) getSelectorState
(List<Object> parameters, GameServerState server) type()
Methods inherited from class com.pixelmonmod.tcg.duel.attack.AttackEffect
applyAfterDamage, applyDelayAfterDamage, chooseOppAttack, codec, flipCoin, getCustomGUI, getOpponentSelectorState, isOptional, modifyDamage, modifyTurn
-
Field Details
-
CODEC
-
type
-
count
protected final int count -
energy
-
-
Constructor Details
-
AttachDiscardEffect
-
-
Method Details
-
type
- Specified by:
type
in classAttackEffect
-
getSelectorState
- Overrides:
getSelectorState
in classAttackEffect
-
canApply
- Overrides:
canApply
in classAttackEffect
-
applyBeforeDamage
public void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
applyBeforeDamage
in classAttackEffect
-