Class ValueTypeList
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase<V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase<ValueTypeList.ValueList>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeList
- All Implemented Interfaces:
IValueType<ValueTypeList.ValueList>
Value type with values that are strings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classValueTypeList.ListFactoryIterator<T extends IValueType<V>,V extends IValue> static classValueTypeList.ValueList<T extends IValueType<V>,V extends IValue> static classNested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueType
IValueType.ValueTypeComparator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentcanDeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Check if the given value can be deserialized.deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given value.deserializeValuePredicate(com.google.gson.JsonObject element, IValue value) Deserialize the given JSON element to a value predicate.Create an immutable default value.Materialize the given value so that it can exist without any external references.net.minecraft.nbt.Tagserialize(ValueTypeList.ValueList value) Serialize 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
cast, correspondsTo, getDisplayColor, getDisplayColorFormat, getModId, getTranslationKey, getTypeName, getTypeNamespace, getUniqueName, getUnlocalizedPrefix, isCategory, loadTooltip, 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
getVariableItemOverrideModel, renderISTER
-
Field Details
-
MAX_RENDER_LINES
public static final int MAX_RENDER_LINES- See Also:
-
-
Constructor Details
-
ValueTypeList
public ValueTypeList()
-
-
Method Details
-
getDefault
Description copied from interface:IValueTypeCreate an immutable default value.- Returns:
- The default value of this type.
-
toCompactString
- 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.- Parameters:
value- The value to serialize.- Returns:
- The serialized value.
-
canDeserialize
public net.minecraft.network.chat.Component canDeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Description copied from interface:IValueTypeCheck if the given value can be deserialized.- Specified by:
canDeserializein interfaceIValueType<ValueTypeList.ValueList>- Overrides:
canDeserializein classValueTypeBase<ValueTypeList.ValueList>- Parameters:
valueDeseralizationContext- Getter for blocks.value- The value to deserialize.- Returns:
- An error or null.
-
deserialize
public ValueTypeList.ValueList deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Description copied from interface:IValueTypeDeserialize the given value.- Parameters:
valueDeseralizationContext- Deserialization context.value- The value to deserialize.- Returns:
- The deserialized value.
-
materialize
public ValueTypeList.ValueList materialize(ValueTypeList.ValueList value) throws EvaluationException Description copied from interface:IValueTypeMaterialize the given value so that it can exist without any external references.- Specified by:
materializein interfaceIValueType<ValueTypeList.ValueList>- Overrides:
materializein classValueTypeBase<ValueTypeList.ValueList>- Parameters:
value- The value to materialize.- Returns:
- The materialized value.
- Throws:
EvaluationException- if materialization fails because of a variable evaluation.
-
createLogicProgrammerElement
- Specified by:
createLogicProgrammerElementin interfaceIValueType<ValueTypeList.ValueList>- Overrides:
createLogicProgrammerElementin classValueTypeBase<ValueTypeList.ValueList>- Returns:
- A new logic programmer element for this value type.
-
deserializeValuePredicate
public ValuePredicate<ValueTypeList.ValueList> deserializeValuePredicate(com.google.gson.JsonObject element, @Nullable IValue value) Description copied from interface:IValueTypeDeserialize the given JSON element to a value predicate.- Parameters:
element- The JSON element.value- The value.- Returns:
- The value predicate.
-