Posted March 19, 20214 yr Item#initCapabilities returns an ICapabilityProvider. This is working great, but now my mod has a second capability that needs to be added to some items that already have the first capability. How is this handled? Or do I need to create a provider that implements both interfaces now? Edited March 19, 20214 yr by Nuke3d
March 19, 20214 yr Author That is indeed how I have it setup, however, I have two providers now. I am thinking I just need one provider that checks the cap requested in getCapability and returns implimentation(lazy optrional.cast() actually). I can see how that works. I'll have to handle both in serializeNBT and deserializeNBT as well I believe.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.