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
FieldsFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddropAll()Drop all armor and main inventory items.voidfromSlots(net.minecraft.world.level.storage.ValueInput.TypedInputList<net.minecraft.world.ItemStackWithSlot> input) net.minecraft.world.item.ItemStackgetAccessory(AccessorySlot slot) net.minecraft.world.item.ItemStackDeprecated.net.minecraft.world.item.ItemStackDeprecated.booleanisUsableByPlayer(net.minecraft.world.entity.player.Player player) Don't rename this method to canInteractWith due to conflicts with ContainervoidreplaceWith(UnionInventory playerInventory) Copy the ItemStack contents from another InventoryPlayer instancevoidstoreAsSlots(net.minecraft.world.level.storage.ValueOutput.TypedOutputList<net.minecraft.world.ItemStackWithSlot> output) voidtick()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, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, startOpen, stopOpenMethods inherited from interface Iterable
forEach, spliteratorMethods 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
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
-
getFirstRing
Deprecated. -
getSecondRing
Deprecated.
-