Class LogicHelper

java.lang.Object
com.pixelmonmod.tcg.api.util.helper.LogicHelper

public class LogicHelper extends Object
  • 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.core.RegistryAccess registryAccess, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack)
    • getCosmetics

      public static net.minecraft.util.Tuple<net.minecraft.core.Holder<CardBack>,net.minecraft.core.Holder<Coin>> getCosmetics(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack itemStack)
    • 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

      public static void shuffleCardList(List<ImmutableCard> cards)
    • 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

      public static List<CardWithLocation> getEnergiesFromList(List<CommonCardState> cards)
    • hasBench

      public static boolean hasBench(PlayerClientMyState player)
    • evolveCard

      public static PokemonCardState evolveCard(CommonCardState card, PokemonCardState activeCard, int turnCount)
    • getCostModifier

      public static int getCostModifier(PlayerCommonState me, PlayerCommonState opp)