Class ValueObjectTypeEntity
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeBase<V>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeBase<ValueObjectTypeEntity.ValueEntity>
org.cyclops.integrateddynamics.core.evaluate.variable.ValueObjectTypeEntity
- All Implemented Interfaces:
IValueType<ValueObjectTypeEntity.ValueEntity>,IValueTypeNamed<ValueObjectTypeEntity.ValueEntity>,IValueTypeNullable<ValueObjectTypeEntity.ValueEntity>,IValueTypeUniquelyNamed<ValueObjectTypeEntity.ValueEntity>
public class ValueObjectTypeEntity
extends ValueObjectTypeBase<ValueObjectTypeEntity.ValueEntity>
implements IValueTypeNamed<ValueObjectTypeEntity.ValueEntity>, IValueTypeUniquelyNamed<ValueObjectTypeEntity.ValueEntity>, IValueTypeNullable<ValueObjectTypeEntity.ValueEntity>
Value type with values that are itemstacks.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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.deserializeValuePredicate(com.google.gson.JsonObject element, IValue value) Deserialize the given JSON element to a value predicate.Create an immutable default value.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, getDisplayColor, getDisplayColorFormat, getTranslationKey, getTypeName, getUniqueName, getVariableItemOverrideModel, isCategory, isObject, loadTooltip, materialize, parseString, renderISTER, toString
-
Constructor Details
-
ValueObjectTypeEntity
public ValueObjectTypeEntity()
-
-
Method Details
-
getDefault
Description copied from interface:IValueTypeCreate an immutable default value.- Specified by:
getDefaultin interfaceIValueType<ValueObjectTypeEntity.ValueEntity>- Returns:
- The default value of this type.
-
toCompactString
public net.minecraft.network.chat.MutableComponent toCompactString(ValueObjectTypeEntity.ValueEntity value) - Specified by:
toCompactStringin interfaceIValueType<ValueObjectTypeEntity.ValueEntity>- 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<ValueObjectTypeEntity.ValueEntity>- Parameters:
value- The value to serialize.- Returns:
- The serialized value.
-
deserialize
public ValueObjectTypeEntity.ValueEntity deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Description copied from interface:IValueTypeDeserialize the given value.- Specified by:
deserializein interfaceIValueType<ValueObjectTypeEntity.ValueEntity>- Parameters:
valueDeseralizationContext- Deserialization context.value- The value to deserialize.- Returns:
- The deserialized value.
-
getName
- Specified by:
getNamein interfaceIValueTypeNamed<ValueObjectTypeEntity.ValueEntity>
-
isNull
- Specified by:
isNullin interfaceIValueTypeNullable<ValueObjectTypeEntity.ValueEntity>
-
createLogicProgrammerElement
- Specified by:
createLogicProgrammerElementin interfaceIValueType<ValueObjectTypeEntity.ValueEntity>- Overrides:
createLogicProgrammerElementin classValueTypeBase<ValueObjectTypeEntity.ValueEntity>- Returns:
- A new logic programmer element for this value type.
-
deserializeValuePredicate
public ValuePredicate<ValueObjectTypeEntity.ValueEntity> deserializeValuePredicate(com.google.gson.JsonObject element, @Nullable IValue value) Description copied from interface:IValueTypeDeserialize the given JSON element to a value predicate.- Specified by:
deserializeValuePredicatein interfaceIValueType<ValueObjectTypeEntity.ValueEntity>- Parameters:
element- The JSON element.value- The value.- Returns:
- The value predicate.
-
getUniqueName
- Specified by:
getUniqueNamein interfaceIValueTypeUniquelyNamed<ValueObjectTypeEntity.ValueEntity>
-