Interface IIngredientComponentCapabilityAttacher<T,M> 
- Type Parameters:
- T- The instance type.
- M- The matching condition parameter.
- All Known Implementing Classes:
- IngredientComponentCapabilityAttacherAdapter
public interface IIngredientComponentCapabilityAttacher<T,M> 
Instances of this interfaces can be used to attach a 
ICapabilityProvider
 to instances of IngredientComponent that are selected by name.- 
Method SummaryModifier and TypeMethodDescriptionnet.neoforged.neoforge.capabilities.ICapabilityProvider<?, ?, ?> createCapabilityProvider(IngredientComponent<T, M> ingredientComponent) Create a capability provider for the given ingredient component instance.net.minecraft.resources.ResourceLocation
- 
Method Details- 
getTargetNamenet.minecraft.resources.ResourceLocation getTargetName()- Returns:
- The unique name of the capability to attach to.
 
- 
getCapabilityIngredientComponentCapability<?,?> getCapability()- Returns:
- The capability to attach for.
 
- 
createCapabilityProvidernet.neoforged.neoforge.capabilities.ICapabilityProvider<?,?, createCapabilityProvider?> (IngredientComponent<T, M> ingredientComponent) Create a capability provider for the given ingredient component instance.- Parameters:
- ingredientComponent- An ingredient component.
- Returns:
- A capability provider instance.
 
 
-