public class LogicHelper
extends java.lang.Object
Constructor and Description |
---|
LogicHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canEvolve(int cardTurn,
int currentTurn) |
static PokemonCardState |
evolveCard(ImmutableCard card,
PokemonCardState activeCard,
int turnCount) |
static java.util.List<ImmutableCard> |
getCards(java.util.List<net.minecraft.item.ItemStack> items) |
static java.util.List<ImmutableCard> |
getCards(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack itemStack) |
static java.util.List<ImmutableCard> |
getCardsAndCosmetics(net.minecraft.item.ItemStack itemStack,
PlayerServerState self) |
static net.minecraft.util.Tuple<java.lang.String,java.lang.String> |
getCosmetics(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack itemStack) |
static int |
getCostModifier(PlayerCommonState me,
PlayerCommonState opp) |
static java.util.List<CardWithLocation> |
getEnergiesFromList(java.util.List<CommonCardState> cards) |
static boolean |
hasBench(PlayerClientMyState player) |
static boolean |
isEnoughEnergy(CardAttack cardAttack,
java.util.List<CommonCardState> attachments,
PokemonCardState pokemon) |
static boolean |
isEnoughEnergy(int count,
java.util.List<CommonCardState> attachments,
PokemonCardState pokemon) |
static boolean |
isEnoughEnergy(java.util.List<Energy> energyRequirements,
java.util.List<CommonCardState> attachments,
PokemonCardState pokemon) |
static void |
shuffleCardList(java.util.List<ImmutableCard> cards) |
static java.lang.String |
validateDeck(java.util.List<ImmutableCard> cards,
int deckSize) |
static net.minecraft.util.ResourceLocation |
validateDeckInHolder(java.util.List<ImmutableCard> cards) |
public static java.util.List<ImmutableCard> getCardsAndCosmetics(net.minecraft.item.ItemStack itemStack, PlayerServerState self)
public static java.util.List<ImmutableCard> getCards(net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack itemStack)
public static net.minecraft.util.Tuple<java.lang.String,java.lang.String> getCosmetics(net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack itemStack)
public static java.util.List<ImmutableCard> getCards(java.util.List<net.minecraft.item.ItemStack> items)
public static net.minecraft.util.ResourceLocation validateDeckInHolder(java.util.List<ImmutableCard> cards)
public static java.lang.String validateDeck(java.util.List<ImmutableCard> cards, int deckSize)
public static void shuffleCardList(java.util.List<ImmutableCard> cards)
public static boolean isEnoughEnergy(CardAttack cardAttack, java.util.List<CommonCardState> attachments, PokemonCardState pokemon)
public static boolean isEnoughEnergy(int count, java.util.List<CommonCardState> attachments, PokemonCardState pokemon)
public static boolean isEnoughEnergy(java.util.List<Energy> energyRequirements, java.util.List<CommonCardState> attachments, PokemonCardState pokemon)
public static boolean canEvolve(int cardTurn, int currentTurn)
public static java.util.List<CardWithLocation> getEnergiesFromList(java.util.List<CommonCardState> cards)
public static boolean hasBench(PlayerClientMyState player)
public static PokemonCardState evolveCard(ImmutableCard card, PokemonCardState activeCard, int turnCount)
public static int getCostModifier(PlayerCommonState me, PlayerCommonState opp)