Package com.pixelmonmod.pixelmon.items
Class PokeBagItem.PokeBag
java.lang.Object
com.pixelmonmod.pixelmon.items.PokeBagItem.PokeBag
- Enclosing class:
- PokeBagItem
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPokeBag
(net.minecraft.world.Container inventory, net.minecraft.world.item.DyeColor color, int slot) -
Method Summary
Modifier and TypeMethodDescriptionstatic PokeBagItem.PokeBag
fromBuffer
(net.minecraft.network.FriendlyByteBuf buffer) static net.minecraft.world.Container
fromTag
(net.minecraft.nbt.CompoundTag tag) net.minecraft.world.Container
int
getSlot()
static PokeBagItem.PokeBag
readFromItemStack
(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) void
saveInventory
(net.minecraft.nbt.CompoundTag tag) void
writeToBuffer
(net.minecraft.network.FriendlyByteBuf buffer) void
writeToStack
(net.minecraft.world.item.ItemStack stack)
-
Field Details
-
inventory
public net.minecraft.world.Container inventory -
color
public net.minecraft.world.item.DyeColor color
-
-
Constructor Details
-
PokeBag
public PokeBag(net.minecraft.world.Container inventory, net.minecraft.world.item.DyeColor color, int slot)
-
-
Method Details
-
getSlot
public int getSlot() -
writeToStack
public void writeToStack(net.minecraft.world.item.ItemStack stack) -
writeToBuffer
public void writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer) -
saveInventory
public void saveInventory(net.minecraft.nbt.CompoundTag tag) -
fromTag
public static net.minecraft.world.Container fromTag(net.minecraft.nbt.CompoundTag tag) -
readFromItemStack
public static PokeBagItem.PokeBag readFromItemStack(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack) -
fromBuffer
-
getInventory
public net.minecraft.world.Container getInventory()
-