Package com.pixelmonmod.tcg.api.card
Class Card
java.lang.Object
com.pixelmonmod.tcg.api.card.Card
Data class that represents an instance of an
ImmutableCard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Card
from
(net.minecraft.world.item.ItemStack stack) getBase()
int
getGrade()
boolean
void
load
(net.minecraft.nbt.CompoundTag tag) void
load
(net.minecraft.world.item.ItemStack itemStack) static Card
of
(ImmutableCard card) void
write
(net.minecraft.nbt.CompoundTag tag) void
write
(net.minecraft.network.FriendlyByteBuf buf) void
write
(net.minecraft.world.item.ItemStack itemStack)
-
Constructor Details
-
Card
public Card(net.minecraft.nbt.CompoundTag nbt) -
Card
public Card(net.minecraft.network.FriendlyByteBuf buffer) -
Card
-
-
Method Details
-
of
-
from
-
getBase
-
is
-
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)
-