Class ImmutableCard

java.lang.Object
com.pixelmonmod.tcg.api.card.ImmutableCard

public class ImmutableCard extends Object
  • Field Details

    • DIRECT_CODEC

      public static final com.mojang.serialization.Codec<ImmutableCard> DIRECT_CODEC
    • CODEC

      public static final com.mojang.serialization.Codec<net.minecraft.core.Holder<ImmutableCard>> 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

  • Method Details

    • holder

      public net.minecraft.core.Holder<ImmutableCard> holder(net.minecraft.core.RegistryAccess.Frozen registryAccess)
    • getSet

      public Optional<CardSet> getSet(net.minecraft.core.RegistryAccess.Frozen registryAccess)
    • getCardSet

      public net.minecraft.core.Holder<CardSet> getCardSet(net.minecraft.core.Holder<ImmutableCard> holder)
    • getHP

      public int getHP()
    • isSpecial

      public boolean isSpecial()
    • getEffect

      public TrainerEffect getEffect()
    • isPokemonCard

      public boolean isPokemonCard()
    • isEnergy

      public boolean isEnergy()
    • is

      public boolean is(net.minecraft.tags.TagKey<ImmutableCard> tagKey)
    • getMainEnergy

      public Energy getMainEnergy()
    • getSecondaryEnergy

      public Energy getSecondaryEnergy()
    • getPokemonID

      public Integer getPokemonID()
    • getDescription

      public String getDescription()
    • getPreviousEvolutionDexID

      public Integer getPreviousEvolutionDexID()
    • getAbility

      public CardPower getAbility()
    • getAttacks

      public List<CardAttack> getAttacks()
    • getEnergyResistance

      public Energy getEnergyResistance()
    • getResistanceValue

      public int getResistanceValue()
    • getResistanceModifier

      public CardModifier getResistanceModifier()
    • getEnergyWeakness

      public Energy getEnergyWeakness()
    • getWeaknessValue

      public int getWeaknessValue()
    • getWeaknessModifier

      public CardModifier getWeaknessModifier()
    • getRetreatCost

      public Integer getRetreatCost()
    • getRarity

      public net.minecraft.core.Holder<CardRarity> getRarity()
    • getHasCustomTex

      public boolean getHasCustomTex()
    • getCustomTexture

      public static net.minecraft.resources.ResourceLocation getCustomTexture(net.minecraft.core.Holder<ImmutableCard> holder)