Class SearchDiscardWithEnergyCostEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.SearchDiscardWithEnergyCostEffect
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<SearchDiscardWithEnergyCostEffect> protected int
protected Energy
protected int
protected net.minecraft.tags.TagKey
<ImmutableCard> -
Constructor Summary
ConstructorsConstructorDescriptionSearchDiscardWithEnergyCostEffect
(net.minecraft.tags.TagKey<ImmutableCard> searchType, int searchCount, Energy discardEnergy, int discardCount) -
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
-
searchCount
protected int searchCount -
searchType
-
discardCount
protected int discardCount -
discardEnergy
-
-
Constructor Details
-
SearchDiscardWithEnergyCostEffect
public SearchDiscardWithEnergyCostEffect(net.minecraft.tags.TagKey<ImmutableCard> searchType, int searchCount, Energy discardEnergy, int discardCount)
-
-
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
-