Class DeckItem.Deck

java.lang.Object
com.pixelmonmod.tcg.item.DeckItem.Deck
Enclosing class:
DeckItem

public static class DeckItem.Deck extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.Container
     
    boolean
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deck(net.minecraft.world.Container inventory, boolean locked, int slot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     
    static net.minecraft.world.SimpleContainer
    fromTag(net.minecraft.nbt.CompoundTag nbt)
     
    int
     
    boolean
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static DeckItem.Deck fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • 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()