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
FieldsFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddropAll()Drop all armor and main inventory items.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 Containervoidload(net.minecraft.nbt.ListTag p_70486_1_) voidreplaceWith(UnionInventory playerInventory) Copy the ItemStack contents from another InventoryPlayer instancenet.minecraft.nbt.ListTagsave()voidtick()Decrement the number of animations remaining.Methods inherited from class net.minecraft.world.SimpleContainer
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, getContainerSize, getItem, isEmpty, removeAllItems, removeItem, removeItemNoUpdate, removeItemType, removeListener, setChanged, setItem, stillValid, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, 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_) -
save
public net.minecraft.nbt.ListTag save() -
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.
-