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
ConstructorDescriptionIngredientComponentValueHandlerFluidStack
(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.FluidStack
Convert 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, wait
Methods 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:
getValueType
in 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:
getComponent
in 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:IIngredientComponentValueHandler
Convert an instance to a value.- Specified by:
toValue
in 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:IIngredientComponentValueHandler
Convert a value to an instance.- Specified by:
toInstance
in interfaceIIngredientComponentValueHandler<ValueObjectTypeFluidStack,
ValueObjectTypeFluidStack.ValueFluidStack, net.neoforged.neoforge.fluids.FluidStack, Integer> - Parameters:
value
- A value.- Returns:
- A recipe component instance.
-