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
ConstructorsConstructorDescriptionIngredientComponentValueHandlerEnergy(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<Integer, Boolean> ingredientComponent) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponenttoCompactString(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:
getValueTypein 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:
getComponentin interfaceIIngredientComponentValueHandler<ValueTypeInteger,ValueTypeInteger.ValueInteger, Integer, Boolean> - Returns:
- The recipe component.
-
toValue
Description copied from interface:IIngredientComponentValueHandlerConvert an instance to a value.- Specified by:
toValuein interfaceIIngredientComponentValueHandler<ValueTypeInteger,ValueTypeInteger.ValueInteger, Integer, Boolean> - Parameters:
instance- A recipe component instance.- Returns:
- A value.
-
toInstance
Description copied from interface:IIngredientComponentValueHandlerConvert a value to an instance.- Specified by:
toInstancein 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:IIngredientComponentValueHandlerConvert the given list of values to a compact string. To be used in things like tooltips.- Specified by:
toCompactStringin interfaceIIngredientComponentValueHandler<ValueTypeInteger,ValueTypeInteger.ValueInteger, Integer, Boolean> - Parameters:
ingredientValue- A list of ingredient values.- Returns:
- A compact string representation.
-