Package valorless.havenbags.mods
Class HavenBagsPreview
java.lang.Object
valorless.havenbags.mods.HavenBagsPreview
A utility class to create a simplified preview of a list of
ItemStack
s,
typically for visual representation or storage without the full complexity of Bukkit's ItemStack.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A simplified data structure representing a Minecraft item for preview purposes. -
Field Summary
FieldsModifier and TypeFieldDescriptionA list containing simplified data representations of the original ItemStacks. -
Constructor Summary
ConstructorsConstructorDescriptionHavenBagsPreview
(List<org.bukkit.inventory.ItemStack> itemStacks) Constructs a newHavenBagsPreview
from a list ofItemStack
s. -
Method Summary
-
Field Details
-
items
A list containing simplified data representations of the original ItemStacks.
-
-
Constructor Details
-
HavenBagsPreview
Constructs a newHavenBagsPreview
from a list ofItemStack
s. Each valid item (not null or AIR) is converted to anHavenBagsPreview.ItemData
and added to the preview list.- Parameters:
itemStacks
- The list of ItemStacks to convert into a preview format.
-