Class BaseCapability<T,C> 
java.lang.Object
net.neoforged.neoforge.capabilities.BaseCapability<T,C> 
- Type Parameters:
 T- Type of queried objects.C- Type of the additional context.
- Direct Known Subclasses:
 BlockCapability,EntityCapability,ItemCapability
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseCapability(ResourceLocation name, Class<T> typeClass, Class<C> contextClass)  - 
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the additional context.final ResourceLocationname()Returns the name of this capability.Returns the type of queried objects. 
- 
Field Details
- 
name
 - 
typeClass
 - 
contextClass
 
 - 
 - 
Constructor Details
- 
BaseCapability
 
 - 
 - 
Method Details
- 
name
Returns the name of this capability.- Returns:
 - the name of this capability
 
 - 
typeClass
Returns the type of queried objects.- Returns:
 - the type of queried objects
 
 - 
contextClass
Returns the type of the additional context.- Returns:
 - the type of the additional context
 
 
 -