Package com.pixelmonmod.tcg.api.card
Class ImmutableCard
java.lang.Object
com.pixelmonmod.tcg.api.card.ImmutableCard
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<net.minecraft.core.Holder<ImmutableCard>> static final net.minecraft.network.codec.StreamCodec
<net.minecraft.network.RegistryFriendlyByteBuf, net.minecraft.resources.ResourceKey<ImmutableCard>> static final com.mojang.serialization.Codec
<ImmutableCard> -
Constructor Summary
ConstructorsConstructorDescriptionImmutableCard
(boolean isSpecial, int hp, Optional<List<Energy>> energies, 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> getCardSet
(net.minecraft.core.Holder<ImmutableCard> holder) static net.minecraft.resources.ResourceLocation
getCustomTexture
(net.minecraft.core.Holder<ImmutableCard> holder) boolean
int
getHP()
net.minecraft.core.Holder
<CardRarity> int
getSet
(net.minecraft.core.RegistryAccess.Frozen registryAccess) int
net.minecraft.core.Holder
<ImmutableCard> holder
(net.minecraft.core.RegistryAccess.Frozen registryAccess) boolean
is
(net.minecraft.tags.TagKey<ImmutableCard> tagKey) boolean
isEnergy()
boolean
boolean
-
Field Details
-
DIRECT_CODEC
-
CODEC
-
DATA_COMPONENT_STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,net.minecraft.resources.ResourceKey<ImmutableCard>> DATA_COMPONENT_STREAM_CODEC
-
-
Constructor Details
-
ImmutableCard
public ImmutableCard(boolean isSpecial, int hp, Optional<List<Energy>> energies, 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
-
holder
public net.minecraft.core.Holder<ImmutableCard> holder(net.minecraft.core.RegistryAccess.Frozen registryAccess) -
getSet
-
getCardSet
public net.minecraft.core.Holder<CardSet> getCardSet(net.minecraft.core.Holder<ImmutableCard> holder) -
getHP
public int getHP() -
isSpecial
public boolean isSpecial() -
getEffect
-
isPokemonCard
public boolean isPokemonCard() -
isEnergy
public boolean isEnergy() -
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 static net.minecraft.resources.ResourceLocation getCustomTexture(net.minecraft.core.Holder<ImmutableCard> holder)
-