Skip to content

Inventory from BlockSnapshot #2467

Description

@mosemister

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageThis label is automatically applied to new issues and pull requests to indicate they require triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions