Class Database.BagSimple

java.lang.Object
valorless.havenbags.Database.BagSimple
Enclosing class:
Database

public static class Database.BagSimple extends Object
Lightweight view of a bag item paired with its current content list. Used by callers that need both the ItemStack representation of the bag and its inventory contents without holding a full Bag reference.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final List<org.bukkit.inventory.ItemStack>
    The current contents of the bag's inventory slots.
    final org.bukkit.inventory.ItemStack
    The bag ItemStack as it exists in a player's inventory.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BagSimple(org.bukkit.inventory.ItemStack item, List<org.bukkit.inventory.ItemStack> content)
    Constructs a BagSimple pairing a bag item with its contents.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • item

      public final org.bukkit.inventory.ItemStack item
      The bag ItemStack as it exists in a player's inventory.
    • content

      public final List<org.bukkit.inventory.ItemStack> content
      The current contents of the bag's inventory slots.
  • Constructor Details

    • BagSimple

      public BagSimple(org.bukkit.inventory.ItemStack item, List<org.bukkit.inventory.ItemStack> content)
      Constructs a BagSimple pairing a bag item with its contents.
      Parameters:
      item - the bag ItemStack
      content - the bag's inventory contents