Class IngredientComponentCapabilityAttacherAdapter<T,M>
java.lang.Object
org.cyclops.commoncapabilities.api.ingredient.capability.IngredientComponentCapabilityAttacherAdapter<T,M>
- All Implemented Interfaces:
IIngredientComponentCapabilityAttacher<T,
M>
public abstract class IngredientComponentCapabilityAttacherAdapter<T,M>
extends Object
implements IIngredientComponentCapabilityAttacher<T,M>
A base implementation of
IIngredientComponentCapabilityAttacher
.-
Constructor Summary
ConstructorDescriptionIngredientComponentCapabilityAttacherAdapter
(net.minecraft.resources.ResourceLocation targetName, IngredientComponentCapability<?, ?> capability) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.commoncapabilities.api.ingredient.capability.IIngredientComponentCapabilityAttacher
createCapabilityProvider
-
Constructor Details
-
IngredientComponentCapabilityAttacherAdapter
public IngredientComponentCapabilityAttacherAdapter(net.minecraft.resources.ResourceLocation targetName, IngredientComponentCapability<?, ?> capability)
-
-
Method Details
-
getTargetName
public net.minecraft.resources.ResourceLocation getTargetName()- Specified by:
getTargetName
in interfaceIIngredientComponentCapabilityAttacher<T,
M> - Returns:
- The unique name of the capability to attach to.
-
getCapability
- Specified by:
getCapability
in interfaceIIngredientComponentCapabilityAttacher<T,
M> - Returns:
- The capability to attach for.
-