public static class PokeBagItem.PokeBag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
net.minecraft.item.DyeColor |
color |
net.minecraft.inventory.Inventory |
inventory |
Constructor and Description |
---|
PokeBag(net.minecraft.inventory.Inventory inventory,
net.minecraft.item.DyeColor color,
int slot) |
Modifier and Type | Method and Description |
---|---|
static PokeBagItem.PokeBag |
fromBuffer(net.minecraft.network.PacketBuffer buffer) |
static net.minecraft.inventory.Inventory |
fromTag(net.minecraft.nbt.CompoundNBT nbt) |
int |
getSlot() |
static PokeBagItem.PokeBag |
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 net.minecraft.inventory.Inventory inventory
public net.minecraft.item.DyeColor color
public PokeBag(net.minecraft.inventory.Inventory inventory, net.minecraft.item.DyeColor color, int slot)
public int getSlot()
public void writeToStack(net.minecraft.item.ItemStack stack)
public void writeToBuffer(net.minecraft.network.PacketBuffer buffer)
public void saveInventory(net.minecraft.nbt.CompoundNBT compoundNBT)
public static net.minecraft.inventory.Inventory fromTag(net.minecraft.nbt.CompoundNBT nbt)
public static PokeBagItem.PokeBag readFromItemStack(net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack stack)
public static PokeBagItem.PokeBag fromBuffer(net.minecraft.network.PacketBuffer buffer)