Class IngredientComponentValueHandlerItemStack
java.lang.Object
org.cyclops.integrateddynamics.capability.ingredient.IngredientComponentValueHandlerItemStack
- All Implemented Interfaces:
IIngredientComponentValueHandler<ValueObjectTypeItemStack,
ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer>
public class IngredientComponentValueHandlerItemStack
extends Object
implements IIngredientComponentValueHandler<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack,net.minecraft.world.item.ItemStack,Integer>
-
Constructor Summary
ConstructorDescriptionIngredientComponentValueHandlerItemStack
(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.ingredient.capability.IIngredientComponentValueHandler
toCompactString
-
Constructor Details
-
IngredientComponentValueHandlerItemStack
public IngredientComponentValueHandlerItemStack(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.minecraft.world.item.ItemStack, Integer> ingredientComponent)
-
-
Method Details
-
getValueType
- Specified by:
getValueType
in interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,
ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Returns:
- The value type with which the component should be handled.
-
getComponent
public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.minecraft.world.item.ItemStack,Integer> getComponent()- Specified by:
getComponent
in interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,
ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Returns:
- The recipe component.
-
toValue
Description copied from interface:IIngredientComponentValueHandler
Convert an instance to a value.- Specified by:
toValue
in interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,
ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Parameters:
instance
- A recipe component instance.- Returns:
- A value.
-
toInstance
Description copied from interface:IIngredientComponentValueHandler
Convert a value to an instance.- Specified by:
toInstance
in interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,
ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Parameters:
value
- A value.- Returns:
- A recipe component instance.
-