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 Item-containing Items #4083

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

BasiqueEvangelist
Copy link
Contributor

@BasiqueEvangelist BasiqueEvangelist commented Sep 11, 2024

Currently draft, since only Shulker Boxes are supported the PR this depends on hasn't been merged.

Based on #4082, until that is merged changes from that PR will show up in the diff and commit log.
Actual diff

@BasiqueEvangelist BasiqueEvangelist marked this pull request as ready for review September 11, 2024 20:40
@modmuss50 modmuss50 added the enhancement New feature or request label Sep 11, 2024
@BasiqueEvangelist BasiqueEvangelist force-pushed the items-in-items branch 2 times, most recently from 5f3d7c8 to 2889334 Compare September 23, 2024 19:37
@BasiqueEvangelist
Copy link
Contributor Author

The PR this depends on has been merged.

Copy link
Member

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments, but it looks good overall. There are no implementations that are usable by other mods, but that can come in a different PR if someone is feeling motivated. 😉

Copy link
Member

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you.

@BasiqueEvangelist
Copy link
Contributor Author

There are no implementations that are usable by other mods, but that can come in a different PR if someone is feeling motivated.

Well, the ContainerComponentStorage impl could probably be opened up for mods to use, considering it's suitably generic. I made it internal for now because I didn't want to have to figure out how to properly expose it.

@Technici4n
Copy link
Member

Yes it's fine to keep it internal like that. At this point just having ItemStorage.ITEM and the vanilla implementations is already good progress!

@modmuss50 modmuss50 added last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge labels Oct 11, 2024
@modmuss50 modmuss50 merged commit 4054068 into FabricMC:1.21.2 Oct 15, 2024
4 checks passed
modmuss50 pushed a commit that referenced this pull request Oct 15, 2024
* first steps toward container item support

* add bundle support

* Update fabric-transfer-api-v1/src/main/java/net/fabricmc/fabric/impl/transfer/item/ContainerComponentStorage.java

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

* address reviews + TIL ContainerItemContext#find exists

* address reviews of bundle code

---------

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

(cherry picked from commit 4054068)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request last call If you care, make yourself heard right away! merge me please Pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants