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 Details

    • getTargetName

      net.minecraft.resources.ResourceLocation getTargetName()
      Returns:
      The unique name of the capability to attach to.
    • getCapability

      IngredientComponentCapability<?,?> getCapability()
      Returns:
      The capability to attach for.
    • createCapabilityProvider

      net.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.