Class LogicHelper
java.lang.Object
com.pixelmonmod.tcg.api.util.helper.LogicHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canEvolve
(int cardTurn, int currentTurn) static PokemonCardState
evolveCard
(ImmutableCard card, PokemonCardState activeCard, int turnCount) static List<ImmutableCard>
static List<ImmutableCard>
getCards
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack) static List<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<ImmutableCard> cards, int deckSize) static net.minecraft.resources.ResourceLocation
validateDeckInHolder
(List<ImmutableCard> cards)
-
Constructor Details
-
LogicHelper
public LogicHelper()
-
-
Method Details
-
getCardsAndCosmetics
public static List<ImmutableCard> getCardsAndCosmetics(net.minecraft.world.item.ItemStack itemStack, PlayerServerState self) -
getCards
public static List<ImmutableCard> getCards(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack) -
getCosmetics
-
getCards
-
validateDeckInHolder
public static net.minecraft.resources.ResourceLocation validateDeckInHolder(List<ImmutableCard> cards) -
validateDeck
-
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(ImmutableCard card, PokemonCardState activeCard, int turnCount) -
getCostModifier
-