Posted February 26, 20178 yr I have created a custom capability using the documentation that I store in the player. My capability code is in the following package in my mod: https://github.com/WiseOwl5/EnviroMineRevived/tree/master/src/main/java/wiseowl5/EnviroMineRevived/Capability I am having no trouble attaching it. But how would I get the capability data stored in the player? I know it is probably EntityPlayer#capabilities , but what do I do with that to manipulate my capability data?
February 26, 20178 yr Use EntityPlayer#getCapability. It takes a capability instance (for yours that would be CapabilityEnviroData.enviroDataCapability) and an EnumFacing side (or null).
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.