Class LogicHelper
java.lang.Object
com.pixelmonmod.tcg.api.util.helper.LogicHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canEvolve
(int cardTurn, int currentTurn) static PokemonCardState
evolveCard
(CommonCardState card, PokemonCardState activeCard, int turnCount) static List
<net.minecraft.core.Holder<ImmutableCard>> static List
<net.minecraft.core.Holder<ImmutableCard>> getCards
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack) static List
<net.minecraft.core.Holder<ImmutableCard>> getCardsAndCosmetics
(net.minecraft.world.item.ItemStack itemStack, PlayerServerState self) getCosmetics
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack) static int
static List
<CardWithLocation> getEnergiesFromList
(List<CommonCardState> cards) static boolean
hasBench
(PlayerClientMyState player) static boolean
isEnoughEnergy
(int count, List<CommonCardState> attachments, PokemonCardState pokemon) static boolean
isEnoughEnergy
(CardAttack cardAttack, List<CommonCardState> attachments, PokemonCardState pokemon) static boolean
isEnoughEnergy
(List<Energy> energyRequirements, List<CommonCardState> attachments, PokemonCardState pokemon) static void
shuffleCardList
(List<ImmutableCard> cards) static String
validateDeck
(List<net.minecraft.core.Holder<ImmutableCard>> cards, int deckSize) static net.minecraft.resources.ResourceLocation
validateDeckInHolder
(List<net.minecraft.core.Holder<ImmutableCard>> cards)
-
Constructor Details
-
LogicHelper
public LogicHelper()
-
-
Method Details
-
getCardsAndCosmetics
public static List<net.minecraft.core.Holder<ImmutableCard>> getCardsAndCosmetics(net.minecraft.world.item.ItemStack itemStack, PlayerServerState self) -
getCards
public static List<net.minecraft.core.Holder<ImmutableCard>> getCards(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack) -
getCosmetics
-
getCards
public static List<net.minecraft.core.Holder<ImmutableCard>> getCards(List<net.minecraft.world.item.ItemStack> items) -
validateDeckInHolder
public static net.minecraft.resources.ResourceLocation validateDeckInHolder(List<net.minecraft.core.Holder<ImmutableCard>> cards) -
validateDeck
public static String validateDeck(List<net.minecraft.core.Holder<ImmutableCard>> cards, int deckSize) -
shuffleCardList
-
isEnoughEnergy
public static boolean isEnoughEnergy(CardAttack cardAttack, List<CommonCardState> attachments, PokemonCardState pokemon) -
isEnoughEnergy
public static boolean isEnoughEnergy(int count, List<CommonCardState> attachments, PokemonCardState pokemon) -
isEnoughEnergy
public static boolean isEnoughEnergy(List<Energy> energyRequirements, List<CommonCardState> attachments, PokemonCardState pokemon) -
canEvolve
public static boolean canEvolve(int cardTurn, int currentTurn) -
getEnergiesFromList
-
hasBench
-
evolveCard
public static PokemonCardState evolveCard(CommonCardState card, PokemonCardState activeCard, int turnCount) -
getCostModifier
-