Class SearchDiscardWithEnergyCostEffect
java.lang.Object
com.pixelmonmod.tcg.duel.attack.AttackEffect
com.pixelmonmod.tcg.duel.attack.effects.SearchDiscardWithEnergyCostEffect
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SearchDiscardWithEnergyCostEffect> protected intprotected Energyprotected intprotected net.minecraft.tags.TagKey<ImmutableCard> 
- 
Constructor SummaryConstructorsConstructorDescriptionSearchDiscardWithEnergyCostEffect(net.minecraft.tags.TagKey<ImmutableCard> searchType, int searchCount, Energy discardEnergy, int discardCount) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) booleancanApply(List<Object> parameters, CardAttack cardAttack, GameServerState server) getSelectorState(List<Object> parameters, GameServerState server) type()Methods inherited from class com.pixelmonmod.tcg.duel.attack.AttackEffectapplyAfterDamage, applyDelayAfterDamage, chooseOppAttack, codec, flipCoin, getCustomGUI, getOpponentSelectorState, isOptional, modifyDamage, modifyTurn
- 
Field Details- 
CODEC
- 
searchCountprotected int searchCount
- 
searchType
- 
discardCountprotected int discardCount
- 
discardEnergy
 
- 
- 
Constructor Details- 
SearchDiscardWithEnergyCostEffectpublic SearchDiscardWithEnergyCostEffect(net.minecraft.tags.TagKey<ImmutableCard> searchType, int searchCount, Energy discardEnergy, int discardCount) 
 
- 
- 
Method Details- 
type- Specified by:
- typein class- AttackEffect
 
- 
getSelectorState- Overrides:
- getSelectorStatein class- AttackEffect
 
- 
canApply- Overrides:
- canApplyin class- AttackEffect
 
- 
applyBeforeDamagepublic void applyBeforeDamage(List<Object> parameters, PokemonAttackStatus attack, PokemonCardState card, GameServerState server) - Overrides:
- applyBeforeDamagein class- AttackEffect
 
 
-