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
ConstructorsConstructorDescriptionIngredientComponentValueHandlerItemStack(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, waitMethods 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:
getValueTypein 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:
getComponentin interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Returns:
- The recipe component.
-
toValue
Description copied from interface:IIngredientComponentValueHandlerConvert an instance to a value.- Specified by:
toValuein interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Parameters:
instance- A recipe component instance.- Returns:
- A value.
-
toInstance
Description copied from interface:IIngredientComponentValueHandlerConvert a value to an instance.- Specified by:
toInstancein interfaceIIngredientComponentValueHandler<ValueObjectTypeItemStack,ValueObjectTypeItemStack.ValueItemStack, net.minecraft.world.item.ItemStack, Integer> - Parameters:
value- A value.- Returns:
- A recipe component instance.
-