-
Notifications
You must be signed in to change notification settings - Fork 433
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 item setting for bundle occupancy #1181
base: 1.17
Are you sure you want to change the base?
Add item setting for bundle occupancy #1181
Conversation
This reverts commit 961f713.
Well it looks like you beat me to opening the PR. Mine is here for reference on docs if you want some (https://github.com/i509VCB/fabric/tree/ft/bundle-item-weight) There are a few things you need to probably suffice for, such as using a specific interface over a |
Thanks! I've added your docs |
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemSettings.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/impl/item/FabricItemInternals.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/impl/item/ItemExtensions.java
Outdated
Show resolved
Hide resolved
fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/BundleItemMixin.java
Outdated
Show resolved
Hide resolved
* @param stack the item stack | ||
* @return the occupancy size of the item stack. | ||
*/ | ||
int getBundleOccupancy(ItemStack stack); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't recall off head, does the bundle logic here assume the item stack is 1 and then later the count is multiplied onto the value? Could you check on that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the bundle occupancy returned here isn't multiplied with the stack size
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm must have remembered something different then
So is there any change? |
none for now |
Adds an item setting for bundle occupancy to FabricItemSettings.
Fixes #1167