Class IngredientComponentValueHandlerFluidStack
java.lang.Object
org.cyclops.integrateddynamics.capability.ingredient.IngredientComponentValueHandlerFluidStack
- All Implemented Interfaces:
IIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer>
public class IngredientComponentValueHandlerFluidStack
extends Object
implements IIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack,net.neoforged.neoforge.fluids.FluidStack,Integer>
-
Constructor Summary
ConstructorsConstructorDescriptionIngredientComponentValueHandlerFluidStack(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.neoforged.neoforge.fluids.FluidStack, Integer> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionorg.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.neoforged.neoforge.fluids.FluidStack, Integer> net.neoforged.neoforge.fluids.FluidStackConvert a value to an instance.toValue(net.neoforged.neoforge.fluids.FluidStack instance) Convert an instance to a value.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
-
IngredientComponentValueHandlerFluidStack
public IngredientComponentValueHandlerFluidStack(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.neoforged.neoforge.fluids.FluidStack, Integer> ingredientComponent)
-
-
Method Details
-
getValueType
- Specified by:
getValueTypein interfaceIIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer> - Returns:
- The value type with which the component should be handled.
-
getComponent
public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<net.neoforged.neoforge.fluids.FluidStack,Integer> getComponent()- Specified by:
getComponentin interfaceIIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer> - Returns:
- The recipe component.
-
toValue
public ValueObjectTypeFluidStack.ValueFluidStack toValue(@Nullable net.neoforged.neoforge.fluids.FluidStack instance) Description copied from interface:IIngredientComponentValueHandlerConvert an instance to a value.- Specified by:
toValuein interfaceIIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer> - Parameters:
instance- A recipe component instance.- Returns:
- A value.
-
toInstance
@Nullable public net.neoforged.neoforge.fluids.FluidStack toInstance(ValueObjectTypeFluidStack.ValueFluidStack value) Description copied from interface:IIngredientComponentValueHandlerConvert a value to an instance.- Specified by:
toInstancein interfaceIIngredientComponentValueHandler<ValueObjectTypeFluidStack,ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer> - Parameters:
value- A value.- Returns:
- A recipe component instance.
-