Fabric Inventory API without having to use private code #2084
Answered
by
SquidDev
TheDrawingCoder-Gamer
asked this question in
Q&A
-
I found an old answer for forge, and that still applies, but on fabric the peripheral wraps into a class that is inside the private impl, thus is unstable and could change at any time. Is there a nice way to use the storage without pulling in the private impl? The private code is here |
Beta Was this translation helpful? Give feedback.
Answered by
SquidDev
Jan 31, 2025
Replies: 1 comment 4 replies
-
Hi! Can you explain what you're trying to do? Normally I wouldn't expect other mods to need to reference the inventory methods at all — they should be provided automatically if you expose an inventory storage. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh, are you referring to #718? If you just need to find other inventories on the system (to transfer items into/out of), then you don't need the
StorageWrapper
and can just do something likeInventoryMethods.extractHandler