public static class DeckItem.Deck
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
net.minecraft.inventory.Inventory |
inventory |
boolean |
locked |
static int |
size |
Constructor and Description |
---|
Deck(net.minecraft.inventory.Inventory inventory,
boolean locked,
int slot) |
Modifier and Type | Method and Description |
---|---|
static DeckItem.Deck |
fromBuffer(net.minecraft.network.PacketBuffer buffer) |
static net.minecraft.inventory.Inventory |
fromTag(net.minecraft.nbt.CompoundNBT nbt) |
int |
getSlot() |
boolean |
isLocked() |
static DeckItem.Deck |
readFromItemStack(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack stack) |
void |
saveInventory(net.minecraft.nbt.CompoundNBT compoundNBT) |
void |
writeToBuffer(net.minecraft.network.PacketBuffer buffer) |
void |
writeToStack(net.minecraft.item.ItemStack stack) |
public static final int size
public net.minecraft.inventory.Inventory inventory
public boolean locked
public Deck(net.minecraft.inventory.Inventory inventory, boolean locked, int slot)
public int getSlot()
public void writeToBuffer(net.minecraft.network.PacketBuffer buffer)
public static DeckItem.Deck fromBuffer(net.minecraft.network.PacketBuffer buffer)
public void writeToStack(net.minecraft.item.ItemStack stack)
public void saveInventory(net.minecraft.nbt.CompoundNBT compoundNBT)
public static net.minecraft.inventory.Inventory fromTag(net.minecraft.nbt.CompoundNBT nbt)
public static DeckItem.Deck readFromItemStack(net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack stack)
public boolean isLocked()