Jump to content

[1.11.2]Multiple Capabilities?


Kaneka

Recommended Posts

Hello everybody, 

 

for my mod i need to store multiple "knowledges" to the player. These knowledges are only floats. 

I implemented one knowledge as a capability with interface IKnowledge , implementation KnowledgeEnder, IStorage KnowledgeStorage, ICapabilitySerializable<NBTBase> KnowledgeEnderProvider and capabilityhandler.  

It works fine.

Now I need to know, how to add more knowledges right. I am not sure how to do it propably. 

Just create the 6 classes mentioned above for each knowledge? Or just some of them? Or do it completly different with only one capability? 

These knowledges will be used together sometimes and sometimes seperated from each other. 

 

Thanks for every answer,

Kaneka

 

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.