Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory from BlockSnapshot #2467

Open
mosemister opened this issue Oct 17, 2023 · 0 comments
Open

Inventory from BlockSnapshot #2467

mosemister opened this issue Oct 17, 2023 · 0 comments
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage

Comments

@mosemister
Copy link
Member

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 mosemister added the status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This label is automatically applied to new issues and pull requests to indicate they require triage
Projects
None yet
Development

No branches or pull requests

1 participant