public class DeckInventory
extends net.minecraft.inventory.Inventory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INVENTORY_TAG_NAME |
boolean |
isLocked |
static int |
size |
| Constructor and Description |
|---|
DeckInventory(net.minecraft.item.ItemStack item,
net.minecraft.entity.player.PlayerEntity player) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlaceItem(int index,
net.minecraft.item.ItemStack itemStack) |
int |
getContainerSize() |
net.minecraft.item.ItemStack |
getItem(int p_70301_1_) |
int |
getMaxStackSize() |
net.minecraft.entity.player.PlayerEntity |
getPlayer() |
void |
readInventoryFromNBT(net.minecraft.nbt.CompoundNBT nbtDeck) |
net.minecraft.item.ItemStack |
removeItem(int index,
int count) |
net.minecraft.item.ItemStack |
removeItemNoUpdate(int slot) |
void |
setItem(int index,
net.minecraft.item.ItemStack stack) |
void |
startOpen(net.minecraft.entity.player.PlayerEntity player) |
boolean |
stillValid(net.minecraft.entity.player.PlayerEntity player) |
void |
stopOpen(net.minecraft.entity.player.PlayerEntity player) |
void |
writeInventoryToNBT(net.minecraft.nbt.CompoundNBT nbtDeck) |
void |
writeToBuffer(net.minecraft.network.PacketBuffer buffer) |
addItem, addListener, canAddItem, clearContent, createTag, fillStackedContents, fromTag, isEmpty, removeAllItems, removeItemType, removeListener, setChanged, toStringpublic static java.lang.String INVENTORY_TAG_NAME
public static final int size
public boolean isLocked
public DeckInventory(net.minecraft.item.ItemStack item,
net.minecraft.entity.player.PlayerEntity player)
public void writeInventoryToNBT(net.minecraft.nbt.CompoundNBT nbtDeck)
public void writeToBuffer(net.minecraft.network.PacketBuffer buffer)
public void readInventoryFromNBT(net.minecraft.nbt.CompoundNBT nbtDeck)
public int getContainerSize()
getContainerSize in interface net.minecraft.inventory.IInventorygetContainerSize in class net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack getItem(int p_70301_1_)
getItem in interface net.minecraft.inventory.IInventorygetItem in class net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeItem(int index,
int count)
removeItem in interface net.minecraft.inventory.IInventoryremoveItem in class net.minecraft.inventory.Inventorypublic net.minecraft.item.ItemStack removeItemNoUpdate(int slot)
removeItemNoUpdate in interface net.minecraft.inventory.IInventoryremoveItemNoUpdate in class net.minecraft.inventory.Inventorypublic void setItem(int index,
net.minecraft.item.ItemStack stack)
setItem in interface net.minecraft.inventory.IInventorysetItem in class net.minecraft.inventory.Inventorypublic int getMaxStackSize()
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid in interface net.minecraft.inventory.IInventorystillValid in class net.minecraft.inventory.Inventorypublic void startOpen(net.minecraft.entity.player.PlayerEntity player)
public void stopOpen(net.minecraft.entity.player.PlayerEntity player)
public boolean canPlaceItem(int index,
net.minecraft.item.ItemStack itemStack)
public net.minecraft.entity.player.PlayerEntity getPlayer()