Interface CapabilityRegistry.CapabilityConstructor<C>
- Enclosing class:
 - CapabilityRegistry<C>
 
- Functional Interface:
 - This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
 
- 
Method Summary
Modifier and TypeMethodDescriptioncreate(ResourceLocation name, Class<?> typeClass, Class<?> contextClass) Creates a new capability with the given name, type class and context class. 
- 
Method Details
- 
create
Creates a new capability with the given name, type class and context class.Implementations should use a subclass of
BaseCapabilityto easily store this metadata. 
 -