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, toString
public 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.IInventory
getContainerSize
in class net.minecraft.inventory.Inventory
public net.minecraft.item.ItemStack getItem(int p_70301_1_)
getItem
in interface net.minecraft.inventory.IInventory
getItem
in class net.minecraft.inventory.Inventory
public net.minecraft.item.ItemStack removeItem(int index, int count)
removeItem
in interface net.minecraft.inventory.IInventory
removeItem
in class net.minecraft.inventory.Inventory
public net.minecraft.item.ItemStack removeItemNoUpdate(int slot)
removeItemNoUpdate
in interface net.minecraft.inventory.IInventory
removeItemNoUpdate
in class net.minecraft.inventory.Inventory
public void setItem(int index, net.minecraft.item.ItemStack stack)
setItem
in interface net.minecraft.inventory.IInventory
setItem
in class net.minecraft.inventory.Inventory
public int getMaxStackSize()
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid
in interface net.minecraft.inventory.IInventory
stillValid
in class net.minecraft.inventory.Inventory
public 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()