Class ValueObjectTypeIngredients
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase<V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase<ValueObjectTypeIngredients.ValueIngredients>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeIngredients
- All Implemented Interfaces:
IValueType<ValueObjectTypeIngredients.ValueIngredients>,IValueTypeNamed<ValueObjectTypeIngredients.ValueIngredients>,IValueTypeNullable<ValueObjectTypeIngredients.ValueIngredients>
public class ValueObjectTypeIngredients
extends ValueObjectTypeBase<ValueObjectTypeIngredients.ValueIngredients>
implements IValueTypeNamed<ValueObjectTypeIngredients.ValueIngredients>, IValueTypeNullable<ValueObjectTypeIngredients.ValueIngredients>
Value type with values that are ingredients.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
IValueType.ValueTypeComparator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given value.Create an immutable default value.static net.minecraft.network.chat.MutableComponentingredientsToTextComponent(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients) booleannet.minecraft.nbt.TagSerialize the given value.net.minecraft.network.chat.MutableComponentMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase
isObjectMethods inherited from class org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase
canDeserialize, cast, correspondsTo, getDisplayColor, getDisplayColorFormat, getModId, getTranslationKey, getTypeName, getTypeNamespace, getUniqueName, getUnlocalizedPrefix, isCategory, loadTooltip, materialize, parseString, registerModelResourceLocation, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
canDeserialize, cast, correspondsTo, deserializeValuePredicate, getDisplayColor, getDisplayColorFormat, getTranslationKey, getTypeName, getUniqueName, getVariableItemOverrideModel, isCategory, isObject, loadTooltip, materialize, parseString, renderISTER, toString
-
Constructor Details
-
ValueObjectTypeIngredients
public ValueObjectTypeIngredients()
-
-
Method Details
-
getDefault
Description copied from interface:IValueTypeCreate an immutable default value.- Specified by:
getDefaultin interfaceIValueType<ValueObjectTypeIngredients.ValueIngredients>- Returns:
- The default value of this type.
-
ingredientsToTextComponent
public static net.minecraft.network.chat.MutableComponent ingredientsToTextComponent(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredients) -
toCompactString
public net.minecraft.network.chat.MutableComponent toCompactString(ValueObjectTypeIngredients.ValueIngredients value) - Specified by:
toCompactStringin interfaceIValueType<ValueObjectTypeIngredients.ValueIngredients>- Parameters:
value- The value- Returns:
- A short string representation used in guis to show the value.
-
serialize
Description copied from interface:IValueTypeSerialize the given value.- Specified by:
serializein interfaceIValueType<ValueObjectTypeIngredients.ValueIngredients>- Parameters:
value- The value to serialize.- Returns:
- The serialized value.
-
deserialize
public ValueObjectTypeIngredients.ValueIngredients deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Description copied from interface:IValueTypeDeserialize the given value.- Specified by:
deserializein interfaceIValueType<ValueObjectTypeIngredients.ValueIngredients>- Parameters:
valueDeseralizationContext- Deserialization context.value- The value to deserialize.- Returns:
- The deserialized value.
-
getName
- Specified by:
getNamein interfaceIValueTypeNamed<ValueObjectTypeIngredients.ValueIngredients>
-
isNull
- Specified by:
isNullin interfaceIValueTypeNullable<ValueObjectTypeIngredients.ValueIngredients>
-
createLogicProgrammerElement
- Specified by:
createLogicProgrammerElementin interfaceIValueType<ValueObjectTypeIngredients.ValueIngredients>- Overrides:
createLogicProgrammerElementin classValueTypeBase<ValueObjectTypeIngredients.ValueIngredients>- Returns:
- A new logic programmer element for this value type.
-