SpongeAPI icon indicating copy to clipboard operation
SpongeAPI copied to clipboard

Inventory from BlockSnapshot

Open mosemister opened this issue 1 year ago • 0 comments

Major SpongeAPI version

8

Is this likely to be a breaking change?

No

What are you requesting?

Ability to gain access the items in a container from the BlockSnapshot. This would allow plugins to read the contents of the inventory.

BlockSnapshot snapshot;
List<ItemStackSnapshot> slots = snapshot.getInventory();

Or maybe

Inventory inv = snapshot.getInventory();

mosemister avatar Oct 17 '23 20:10 mosemister