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(CommonCardState card, PokemonCardState activeCard, int turnCount) static List<net.minecraft.core.Holder<ImmutableCard>> 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) static List<net.minecraft.core.Holder<ImmutableCard>> getCardsAndCosmetics(net.minecraft.world.item.ItemStack itemStack, PlayerServerState self) 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) 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<net.minecraft.core.Holder<ImmutableCard>> cards, int deckSize) static net.minecraft.resources.ResourceLocationvalidateDeckInHolder(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.core.RegistryAccess registryAccess, 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
-