Class PokeBagItem.PokeBag

java.lang.Object
com.pixelmonmod.pixelmon.items.PokeBagItem.PokeBag
Enclosing class:
PokeBagItem

public static class PokeBagItem.PokeBag extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.item.DyeColor
     
    net.minecraft.world.Container
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    PokeBag(net.minecraft.world.Container inventory, net.minecraft.world.item.DyeColor color, int slot)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     
    static net.minecraft.world.Container
    fromTag(net.minecraft.nbt.CompoundTag nbt)
     
    net.minecraft.world.Container
     
    int
     
    readFromItemStack(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
     
    void
    saveInventory(net.minecraft.nbt.CompoundTag CompoundTag)
     
    void
    writeToBuffer(net.minecraft.network.FriendlyByteBuf buffer)
     
    void
    writeToStack(net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 CompoundTag)
    • fromTag

      public static net.minecraft.world.Container fromTag(net.minecraft.nbt.CompoundTag nbt)
    • readFromItemStack

      public static PokeBagItem.PokeBag readFromItemStack(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack)
    • fromBuffer

      public static PokeBagItem.PokeBag fromBuffer(net.minecraft.network.FriendlyByteBuf buffer)
    • getInventory

      public net.minecraft.world.Container getInventory()