Package com.pixelmonmod.tcg.api.card
Class ImmutableCard
java.lang.Object
com.pixelmonmod.tcg.api.card.ImmutableCard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static final com.mojang.serialization.Codec
<ImmutableCard> -
Constructor Summary
ConstructorsConstructorDescriptionImmutableCard
(boolean isSpecial, int hp, Optional<Integer> pokemonId, String description, Optional<Integer> previousPokemonId, Optional<CardPower> cardAbility, Optional<List<CardAttack>> cardAttacks, Optional<CardEnergyRelation> resistance, Optional<CardEnergyRelation> weakness, Optional<Integer> retreatCost, Optional<net.minecraft.core.Holder<CardRarity>> cardRarity, Optional<ResourceWithFallback> customTexture, Optional<TrainerEffect> effect) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.Holder
<CardSet> net.minecraft.resources.ResourceLocation
boolean
int
getHP()
net.minecraft.world.item.ItemStack
getItemStack
(int count) net.minecraft.core.Holder
<CardRarity> int
getSet()
int
boolean
is
(net.minecraft.tags.TagKey<ImmutableCard> tagKey) boolean
boolean
isEnergy()
boolean
boolean
boolean
boolean
void
write
(net.minecraft.nbt.CompoundTag tag)
-
Field Details
-
CODEC
-
CARD_CODE_NBT_KEY
-
-
Constructor Details
-
ImmutableCard
public ImmutableCard(boolean isSpecial, int hp, Optional<Integer> pokemonId, String description, Optional<Integer> previousPokemonId, Optional<CardPower> cardAbility, Optional<List<CardAttack>> cardAttacks, Optional<CardEnergyRelation> resistance, Optional<CardEnergyRelation> weakness, Optional<Integer> retreatCost, Optional<net.minecraft.core.Holder<CardRarity>> cardRarity, Optional<ResourceWithFallback> customTexture, Optional<TrainerEffect> effect)
-
-
Method Details
-
getSet
-
getCardSet
-
getHP
public int getHP() -
isSpecial
public boolean isSpecial() -
getEffect
-
isPokemonCard
public boolean isPokemonCard() -
isEvolution
public boolean isEvolution() -
isCosmetic
public boolean isCosmetic() -
isEnergy
public boolean isEnergy() -
isTrainer
public boolean isTrainer() -
is
-
getMainEnergy
-
getSecondaryEnergy
-
getPokemonID
-
getDescription
-
getPreviousEvolutionDexID
-
getAbility
-
getAttacks
-
getEnergyResistance
-
getResistanceValue
public int getResistanceValue() -
getResistanceModifier
-
getEnergyWeakness
-
getWeaknessValue
public int getWeaknessValue() -
getWeaknessModifier
-
getRetreatCost
-
getRarity
-
getHasCustomTex
public boolean getHasCustomTex() -
getCustomTexture
public net.minecraft.resources.ResourceLocation getCustomTexture() -
getItemStack
public net.minecraft.world.item.ItemStack getItemStack(int count) -
write
public void write(net.minecraft.nbt.CompoundTag tag)
-