Class LogicHelper
java.lang.Object
com.pixelmonmod.tcg.api.util.helper.LogicHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanEvolve(int cardTurn, int currentTurn) static PokemonCardStateevolveCard(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 intstatic List<CardWithLocation>getEnergiesFromList(List<CommonCardState> cards) static booleanhasBench(PlayerClientMyState player) static booleanisEnoughEnergy(int count, List<CommonCardState> attachments, PokemonCardState pokemon) static booleanisEnoughEnergy(CardAttack cardAttack, List<CommonCardState> attachments, PokemonCardState pokemon) static booleanisEnoughEnergy(List<Energy> energyRequirements, List<CommonCardState> attachments, PokemonCardState pokemon) static voidshuffleCardList(List<ImmutableCard> cards) static StringvalidateDeck(List<ImmutableCard> cards, int deckSize) static net.minecraft.resources.ResourceLocationvalidateDeckInHolder(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
-