Class BinderInventory

java.lang.Object
net.minecraft.world.SimpleContainer
com.pixelmonmod.tcg.client.container.BinderInventory
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible

public class BinderInventory extends net.minecraft.world.SimpleContainer
  • Field Summary

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

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
    BinderInventory(net.minecraft.world.entity.player.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canPlaceItem(int index, net.minecraft.world.item.ItemStack stack)
     
    void
     
    int
     
    net.minecraft.world.item.ItemStack
    getItem(int index)
     
    int
     
    int
     
    net.minecraft.world.entity.player.Player
     
    int
     
    void
     
    void
    readFromNBT(net.minecraft.nbt.CompoundTag compound)
     
    net.minecraft.world.item.ItemStack
    removeItem(int index, int count)
     
    net.minecraft.world.item.ItemStack
    removeItemNoUpdate(int index)
     
    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
    writeToNBT(net.minecraft.nbt.CompoundTag tagcompound)
     

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, isEmpty, removeAllItems, removeItemType, removeListener, setChanged, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.minecraft.world.Container

    canTakeItem, countItem, hasAnyMatching, hasAnyOf
  • Field Details

  • Constructor Details

    • BinderInventory

      public BinderInventory(net.minecraft.world.entity.player.Player player)
  • Method Details

    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag tagcompound)
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag compound)
    • getContainerSize

      public int getContainerSize()
      Specified by:
      getContainerSize in interface net.minecraft.world.Container
      Overrides:
      getContainerSize in class net.minecraft.world.SimpleContainer
    • getSizePage

      public int getSizePage()
    • getPage

      public int getPage()
    • incrementPage

      public void incrementPage()
    • decrementPage

      public void decrementPage()
    • getItem

      public net.minecraft.world.item.ItemStack getItem(int index)
      Specified by:
      getItem in interface net.minecraft.world.Container
      Overrides:
      getItem in class net.minecraft.world.SimpleContainer
    • 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.SimpleContainer
    • removeItemNoUpdate

      public net.minecraft.world.item.ItemStack removeItemNoUpdate(int index)
      Specified by:
      removeItemNoUpdate in interface net.minecraft.world.Container
      Overrides:
      removeItemNoUpdate in class net.minecraft.world.SimpleContainer
    • 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.SimpleContainer
    • 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.SimpleContainer
    • 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 stack)
    • getPlayer

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