Package com.pixelmonmod.tcg.item
Class DeckItem.Deck
java.lang.Object
com.pixelmonmod.tcg.item.DeckItem.Deck
- Enclosing class:
- DeckItem
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeckItem.Deck
fromBuffer
(net.minecraft.network.FriendlyByteBuf buffer) static net.minecraft.world.SimpleContainer
fromTag
(net.minecraft.nbt.CompoundTag nbt) int
getSlot()
boolean
isLocked()
static DeckItem.Deck
readFromItemStack
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) void
saveInventory
(net.minecraft.nbt.CompoundTag CompoundTag) void
writeToBuffer
(net.minecraft.network.FriendlyByteBuf buffer) void
writeToStack
(net.minecraft.world.item.ItemStack stack)
-
Field Details
-
size
public static final int size- See Also:
-
inventory
public net.minecraft.world.Container inventory -
locked
public boolean locked
-
-
Constructor Details
-
Deck
public Deck(net.minecraft.world.Container inventory, boolean locked, int slot)
-
-
Method Details
-
getSlot
public int getSlot() -
writeToBuffer
public void writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer) -
fromBuffer
-
writeToStack
public void writeToStack(net.minecraft.world.item.ItemStack stack) -
saveInventory
public void saveInventory(net.minecraft.nbt.CompoundTag CompoundTag) -
fromTag
public static net.minecraft.world.SimpleContainer fromTag(net.minecraft.nbt.CompoundTag nbt) -
readFromItemStack
public static DeckItem.Deck readFromItemStack(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) -
isLocked
public boolean isLocked()
-