public class ArrayInventory
extends java.lang.Object
implements net.minecraft.inventory.Inventory
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.item.ItemStack[] |
items |
| Constructor and Description |
|---|
ArrayInventory(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlayerUseInv(net.minecraft.entity.player.PlayerEntity player) |
void |
clearInv() |
int |
getInvMaxStackAmount() |
int |
getInvSize() |
net.minecraft.item.ItemStack |
getInvStack(int index) |
boolean |
isInvEmpty() |
void |
markDirty() |
protected void |
onItemAdded(int index) |
protected void |
onItemRemoved(int index) |
void |
readFromNBT(net.minecraft.nbt.CompoundTag nbt) |
net.minecraft.item.ItemStack |
removeInvStack(int index) |
void |
setInvStack(int index,
net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
takeInvStack(int index,
int count) |
void |
writeToNBT(net.minecraft.nbt.CompoundTag nbt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void readFromNBT(net.minecraft.nbt.CompoundTag nbt)
public void writeToNBT(net.minecraft.nbt.CompoundTag nbt)
protected void onItemAdded(int index)
protected void onItemRemoved(int index)
public int getInvSize()
getInvSize in interface net.minecraft.inventory.Inventorypublic boolean isInvEmpty()
isInvEmpty in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack getInvStack(int index)
getInvStack in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack takeInvStack(int index,
int count)
takeInvStack in interface net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeInvStack(int index)
removeInvStack in interface net.minecraft.inventory.Inventorypublic void setInvStack(int index,
net.minecraft.item.ItemStack stack)
setInvStack in interface net.minecraft.inventory.Inventorypublic int getInvMaxStackAmount()
getInvMaxStackAmount in interface net.minecraft.inventory.Inventorypublic void markDirty()
markDirty in interface net.minecraft.inventory.Inventorypublic boolean canPlayerUseInv(net.minecraft.entity.player.PlayerEntity player)
canPlayerUseInv in interface net.minecraft.inventory.Inventorypublic void clearInv()
clearInv in interface net.minecraft.class_3829