Changes

637 bytes added ,  14:32, 10 December 2021
m
Add class diagram to "Creating Custom Capabilities"
Line 419: Line 419:  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
=== Class Diagram ===
 +
 +
[[File:Custom Capability Class Diagram.svg|800px|thumb|center|Custom Capability Class Diagram]]
 +
 +
In the above diagram the green and red marked areas are classes from Minecraft and Forge respectively. The classes inside the purple area are only needed if you want to [[#Attaching a Capability|Attach a Capability]]. Furthermore this diagram models a persistent provider and its most basic form, for more information on how to create a more complex provider see [[#Custom Capability Providers|Custom Capability Providers]]. To create a volatile provider instead just do not implement <code>INBTSerializable</code>.
    
== Custom Capability Providers ==
 
== Custom Capability Providers ==
14

edits