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 Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.common.capabilities.ICapabilityProvider
createCapabilityProvider
(IngredientComponent<T, M> ingredientComponent) Create a capability provider for the given ingredient component instance.net.minecraft.resources.ResourceLocation
net.minecraft.resources.ResourceLocation
-
Method Details
-
getTargetName
net.minecraft.resources.ResourceLocation getTargetName()- Returns:
- The unique name of the capability to attach to.
-
getCapabilityProviderName
net.minecraft.resources.ResourceLocation getCapabilityProviderName()- Returns:
- An internally unique name for the capability provider that will be attached.
-
createCapabilityProvider
net.minecraftforge.common.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.
-