Class PlayerInventory1_12_2

java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<net.minecraft.entity.player.InventoryPlayer>
mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.entity.player.InventoryPlayer>
mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
mods.thecomputerizer.theimpossiblelibrary.legacy.v12.m2.common.container.PlayerInventory1_12_2
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.entity.player.InventoryPlayer>

public class PlayerInventory1_12_2 extends mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
  • Field Summary

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    wrapped
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>
     
    Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>
     
    Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>
     
    Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>>
     
    int
     
    mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>
    getStack(int slot)
     
    boolean
     
    void
    setStack(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, int slot)
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI

    hasItem, hasStack, isNotEmpty, isSlotEmpty, isSlotNotEmpty

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    equals, getWrapped, getWrappedClass, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped

    unwrap
  • Constructor Details

    • PlayerInventory1_12_2

      public PlayerInventory1_12_2(Object inventory)
  • Method Details

    • getArmorStacks

      public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getArmorStacks()
      Specified by:
      getArmorStacks in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • getHotbarStacks

      public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getHotbarStacks()
      Specified by:
      getHotbarStacks in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • getMainStacks

      public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getMainStacks()
      Specified by:
      getMainStacks in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • getOffHandStacks

      public Collection<mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?>> getOffHandStacks()
      Specified by:
      getOffHandStacks in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.PlayerInventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • getStack

      public mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> getStack(int slot)
      Specified by:
      getStack in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • getSlots

      public int getSlots()
      Specified by:
      getSlots in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.entity.player.InventoryPlayer>
    • setStack

      public void setStack(mods.thecomputerizer.theimpossiblelibrary.api.common.item.ItemStackAPI<?> stack, int slot)
      Specified by:
      setStack in class mods.thecomputerizer.theimpossiblelibrary.api.common.container.InventoryAPI<net.minecraft.entity.player.InventoryPlayer>