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

Add support for getting and modifying ItemType inventories #5366

Merged
merged 9 commits into from
Dec 20, 2023

Conversation

Pikachu920
Copy link
Member

Description

This PR adds support for getting the inventory from an ItemType whose BlockStateMeta implements Container (e.g. shulkers, chests, etc). It also supports modifying the inventory via a proxy which applies any changes to the inventory to the ItemType. The proxy solution is not ideal, but it's the best solution I could find. If you are aware of a better alternative, please let me know!


Target Minecraft Versions: any
Requirements: N/A
Related Issues: kinda sorta #2336

@UnderscoreTud UnderscoreTud added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jan 19, 2023
@Pikachu920 Pikachu920 requested review from AyhamAl-Ali and APickledWalrus and removed request for AyhamAl-Ali and APickledWalrus May 3, 2023 02:52
@TheLimeGlass
Copy link
Collaborator

@Pikachu920 conflicts

@Moderocky Moderocky changed the base branch from master to dev/feature September 17, 2023 08:25
@Moderocky Moderocky added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Sep 17, 2023
@Pikachu920 Pikachu920 merged commit f96267f into dev/feature Dec 20, 2023
5 checks passed
@Pikachu920 Pikachu920 deleted the enhancement/itemstack-ivs branch December 20, 2023 06:21
@sovdeeth sovdeeth restored the enhancement/itemstack-ivs branch January 2, 2024 23:28
@sovdeeth sovdeeth deleted the enhancement/itemstack-ivs branch January 2, 2024 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants