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
ItemStacks,
typically for visual representation or storage without the full complexity of Bukkit's ItemStack.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA 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 newHavenBagsPreviewfrom a list ofItemStacks. -
Method Summary
-
Field Details
-
items
A list containing simplified data representations of the original ItemStacks.
-
-
Constructor Details
-
HavenBagsPreview
Constructs a newHavenBagsPreviewfrom a list ofItemStacks. Each valid item (not null or AIR) is converted to anHavenBagsPreview.ItemDataand added to the preview list.- Parameters:
itemStacks- The list of ItemStacks to convert into a preview format.
-