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