Class DeckInventory

java.lang.Object
net.minecraft.world.entity.player.Inventory
com.pixelmonmod.tcg.client.container.DeckInventory
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.Nameable

public class DeckInventory extends net.minecraft.world.entity.player.Inventory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
    boolean
     
    static final int
     

    Fields inherited from class net.minecraft.world.entity.player.Inventory

    ALL_ARMOR_SLOTS, armor, HELMET_SLOT_ONLY, INVENTORY_SIZE, items, NOT_FOUND_INDEX, offhand, POP_TIME_DURATION, selected, SLOT_OFFHAND

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeckInventory(net.minecraft.world.item.ItemStack item, net.minecraft.world.entity.player.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int index, net.minecraft.world.item.ItemStack itemStack)
     
    int
     
    net.minecraft.world.item.ItemStack
    getItem(int p_70301_1_)
     
    int
     
    net.minecraft.world.entity.player.Player
     
    void
    readInventoryFromNBT(net.minecraft.nbt.CompoundTag nbtDeck)
     
    net.minecraft.world.item.ItemStack
    removeItem(int index, int count)
     
    net.minecraft.world.item.ItemStack
     
    void
    setItem(int index, net.minecraft.world.item.ItemStack stack)
     
    void
    startOpen(net.minecraft.world.entity.player.Player player)
     
    boolean
    stillValid(net.minecraft.world.entity.player.Player player)
     
    void
    stopOpen(net.minecraft.world.entity.player.Player player)
     
    void
    writeInventoryToNBT(net.minecraft.nbt.CompoundTag nbtDeck)
     
    void
    writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     

    Methods inherited from class net.minecraft.world.entity.player.Inventory

    add, add, clearContent, clearOrCountMatchingItems, contains, contains, dropAll, fillStackedContents, findSlotMatchingItem, findSlotMatchingUnusedItem, getArmor, getDestroySpeed, getFreeSlot, getName, getSelected, getSelectionSize, getSlotWithRemainingSpace, getSuitableHotbarSlot, getTimesChanged, hurtArmor, isEmpty, isHotbarSlot, load, pickSlot, placeItemBackInInventory, placeItemBackInInventory, removeFromSelected, removeItem, replaceWith, save, setChanged, setPickedItem, swapPaint, tick

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, hasAnyMatching, hasAnyOf

    Methods inherited from interface net.minecraft.world.Nameable

    getCustomName, getDisplayName, hasCustomName
  • Field Details

    • INVENTORY_TAG_NAME

      public static String INVENTORY_TAG_NAME
    • size

      public static final int size
      See Also:
    • isLocked

      public boolean isLocked
  • Constructor Details

    • DeckInventory

      public DeckInventory(net.minecraft.world.item.ItemStack item, net.minecraft.world.entity.player.Player player)
  • Method Details

    • writeInventoryToNBT

      public void writeInventoryToNBT(net.minecraft.nbt.CompoundTag nbtDeck)
    • writeToBuffer

      public void writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • readInventoryFromNBT

      public void readInventoryFromNBT(net.minecraft.nbt.CompoundTag nbtDeck)
    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
      Overrides:
      getContainerSize in class net.minecraft.world.entity.player.Inventory
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int p_70301_1_)
      Specified by:
      getItem in interface net.minecraft.world.Container
      Overrides:
      getItem in class net.minecraft.world.entity.player.Inventory
    • removeItem

      public net.minecraft.world.item.ItemStack removeItem(int index, int count)
      Specified by:
      removeItem in interface net.minecraft.world.Container
      Overrides:
      removeItem in class net.minecraft.world.entity.player.Inventory
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
      Overrides:
      removeItemNoUpdate in class net.minecraft.world.entity.player.Inventory
    • setItem

      public void setItem(int index, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setItem in interface net.minecraft.world.Container
      Overrides:
      setItem in class net.minecraft.world.entity.player.Inventory
    • getMaxStackSize

      public int getMaxStackSize()
    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
      Overrides:
      stillValid in class net.minecraft.world.entity.player.Inventory
    • startOpen

      public void startOpen(net.minecraft.world.entity.player.Player player)
    • stopOpen

      public void stopOpen(net.minecraft.world.entity.player.Player player)
    • canPlaceItem

      public boolean canPlaceItem(int index, net.minecraft.world.item.ItemStack itemStack)
    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()