Awesome_Spider Posted February 26, 2017 Share Posted February 26, 2017 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? Quote Link to comment Share on other sites More sharing options...
Jay Avery Posted February 26, 2017 Share Posted February 26, 2017 Use EntityPlayer#getCapability. It takes a capability instance (for yours that would be CapabilityEnviroData.enviroDataCapability) and an EnumFacing side (or null). 1 Quote Link to comment Share on other sites More sharing options...
Awesome_Spider Posted February 26, 2017 Author Share Posted February 26, 2017 Thanks for the help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.