Class UnionInventory

java.lang.Object
net.minecraft.world.SimpleContainer
com.stereowalker.unionlib.world.entity.player.UnionInventory
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.inventory.StackedContentsCompatible

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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.world.entity.player.Player
     

    Fields inherited from interface net.minecraft.world.Container

    DEFAULT_DISTANCE_BUFFER
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    Drop all armor and main inventory items.
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.ItemStack
    Deprecated.
    net.minecraft.world.item.ItemStack
    Deprecated.
    boolean
    isUsableByPlayer(net.minecraft.world.entity.player.Player player)
    Don't rename this method to canInteractWith due to conflicts with Container
    void
    load(net.minecraft.nbt.ListTag p_70486_1_, net.minecraft.core.HolderLookup.Provider pLevelRegistry)
     
    void
    replaceWith(UnionInventory playerInventory)
    Copy the ItemStack contents from another InventoryPlayer instance
    net.minecraft.nbt.ListTag
    save(net.minecraft.core.HolderLookup.Provider pLevelRegistry)
     
    void
    Decrement the number of animations remaining.

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, stillValid, 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

    canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
  • Field Details

    • player

      public final net.minecraft.world.entity.player.Player player
  • Constructor Details

    • UnionInventory

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

    • load

      public void load(net.minecraft.nbt.ListTag p_70486_1_, net.minecraft.core.HolderLookup.Provider pLevelRegistry)
    • save

      public net.minecraft.nbt.ListTag save(net.minecraft.core.HolderLookup.Provider pLevelRegistry)
    • tick

      public void tick()
      Decrement the number of animations remaining. Only called on client side. This is used to handle the animation of receiving a block.
    • dropAll

      public void dropAll()
      Drop all armor and main inventory items.
    • replaceWith

      public void replaceWith(UnionInventory playerInventory)
      Copy the ItemStack contents from another InventoryPlayer instance
    • isUsableByPlayer

      public boolean isUsableByPlayer(net.minecraft.world.entity.player.Player player)
      Don't rename this method to canInteractWith due to conflicts with Container
    • getAccessory

      public net.minecraft.world.item.ItemStack getAccessory(AccessorySlot slot)
    • getFirstRing

      @Deprecated public net.minecraft.world.item.ItemStack getFirstRing()
      Deprecated.
    • getSecondRing

      @Deprecated public net.minecraft.world.item.ItemStack getSecondRing()
      Deprecated.