Class IngredientComponentValueHandlerEnergy
java.lang.Object
org.cyclops.integrateddynamics.capability.ingredient.IngredientComponentValueHandlerEnergy
- All Implemented Interfaces:
IIngredientComponentValueHandler<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean>
public class IngredientComponentValueHandlerEnergy
extends Object
implements IIngredientComponentValueHandler<ValueTypeInteger,ValueTypeInteger.ValueInteger,Integer,Boolean>
-
Constructor Summary
ConstructorDescriptionIngredientComponentValueHandlerEnergy
(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<Integer, Boolean> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
toCompactString
(ValueTypeInteger.ValueInteger ingredientValue) Convert the given list of values to a compact string.Convert a value to an instance.Convert an instance to a value.
-
Constructor Details
-
IngredientComponentValueHandlerEnergy
-
-
Method Details
-
getValueType
- Specified by:
getValueType
in interfaceIIngredientComponentValueHandler<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean> - Returns:
- The value type with which the component should be handled.
-
getComponent
public org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<Integer,Boolean> getComponent()- Specified by:
getComponent
in interfaceIIngredientComponentValueHandler<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean> - Returns:
- The recipe component.
-
toValue
Description copied from interface:IIngredientComponentValueHandler
Convert an instance to a value.- Specified by:
toValue
in interfaceIIngredientComponentValueHandler<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean> - 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<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean> - Parameters:
value
- A value.- Returns:
- A recipe component instance.
-
toCompactString
public net.minecraft.network.chat.Component toCompactString(ValueTypeInteger.ValueInteger ingredientValue) Description copied from interface:IIngredientComponentValueHandler
Convert the given list of values to a compact string. To be used in things like tooltips.- Specified by:
toCompactString
in interfaceIIngredientComponentValueHandler<ValueTypeInteger,
ValueTypeInteger.ValueInteger, Integer, Boolean> - Parameters:
ingredientValue
- A list of ingredient values.- Returns:
- A compact string representation.
-