Class AttachCapabilitiesEventIngredientComponent<T,M>
java.lang.Object
net.neoforged.bus.api.Event
org.cyclops.commoncapabilities.api.ingredient.capability.AttachCapabilitiesEventIngredientComponent<T,M>
- Type Parameters:
T
- The instance type.M
- The matching condition parameter.
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class AttachCapabilitiesEventIngredientComponent<T,M>
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event for when an
IngredientComponent
is being constructed that is emitted on the mod event bus.-
Constructor Summary
ConstructorDescriptionAttachCapabilitiesEventIngredientComponent
(IngredientComponent<T, M> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRegistered
(IngredientComponentCapability<?, ?> capability, IngredientComponent<?, ?> ingredientComponent) <T,
C> void register
(IngredientComponentCapability<T, C> capability, IngredientComponent<?, ?> ingredientComponent, net.neoforged.neoforge.capabilities.ICapabilityProvider<IngredientComponent<?, ?>, C, T> provider)
-
Constructor Details
-
AttachCapabilitiesEventIngredientComponent
-
-
Method Details
-
getIngredientComponent
-
register
public <T,C> void register(IngredientComponentCapability<T, C> capability, IngredientComponent<?, ?> ingredientComponent, net.neoforged.neoforge.capabilities.ICapabilityProvider<IngredientComponent<?, ?>, C, T> provider) -
isRegistered
public boolean isRegistered(IngredientComponentCapability<?, ?> capability, IngredientComponent<?, ?> ingredientComponent)
-