- 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
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
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