Class UnionInventory

java.lang.Object
net.minecraft.world.SimpleContainer
com.stereowalker.unionlib.world.entity.player.UnionInventory
All Implemented Interfaces:
Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.world.Clearable, net.minecraft.world.Container, net.minecraft.world.entity.SlotProvider, net.minecraft.world.inventory.StackedContentsCompatible

public class UnionInventory extends net.minecraft.world.SimpleContainer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.world.Container

    net.minecraft.world.Container.ContainerIterator
  • 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.
    void
    fromSlots(net.minecraft.world.level.storage.ValueInput.TypedInputList<net.minecraft.world.ItemStackWithSlot> input)
     
    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
    replaceWith(UnionInventory playerInventory)
    Copy the ItemStack contents from another InventoryPlayer instance
    void
    storeAsSlots(net.minecraft.world.level.storage.ValueOutput.TypedOutputList<net.minecraft.world.ItemStackWithSlot> output)
     
    void
    Decrement the number of animations remaining.

    Methods inherited from class net.minecraft.world.SimpleContainer

    addItem, canAddItem, clearContent, fillStackedContents, fromItemList, getContainerSize, getItem, getItems, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, setChanged, setItem, stillValid, storeAsItemList, toString

    Methods inherited from class Object

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

    Methods inherited from interface net.minecraft.world.Container

    canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpen

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface net.minecraft.world.entity.SlotProvider

    getSlotsFromRange
  • 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

    • fromSlots

      public void fromSlots(net.minecraft.world.level.storage.ValueInput.TypedInputList<net.minecraft.world.ItemStackWithSlot> input)
    • storeAsSlots

      public void storeAsSlots(net.minecraft.world.level.storage.ValueOutput.TypedOutputList<net.minecraft.world.ItemStackWithSlot> output)
    • 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.