Class Card

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

public class Card extends Object
Data class that represents an instance of an ImmutableCard
  • Constructor Details

    • Card

      public Card(net.minecraft.nbt.CompoundTag nbt)
    • Card

      public Card(net.minecraft.network.FriendlyByteBuf buffer)
    • Card

      public Card(String code, int grade, String... tags)
  • Method Details

    • of

      public static Card of(ImmutableCard card)
    • from

      public static Card from(net.minecraft.world.item.ItemStack stack)
    • getBase

      public ImmutableCard getBase()
    • is

      public boolean is(String... tags)
    • getGrade

      public int getGrade()
    • load

      public void load(net.minecraft.world.item.ItemStack itemStack)
    • load

      public void load(net.minecraft.nbt.CompoundTag tag)
    • write

      public void write(net.minecraft.world.item.ItemStack itemStack)
    • write

      public void write(net.minecraft.nbt.CompoundTag tag)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buf)