Class ValueTypeListProxyNBTFactorySimple<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V>>
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyNBTFactorySimple<T,V,P>
- All Implemented Interfaces:
IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,V, P>
- Direct Known Subclasses:
ValueTypeListProxyAppend.Factory,ValueTypeListProxyConcat.Factory,ValueTypeListProxyLazyBuilt.Factory,ValueTypeListProxyNbtAsListGeneric.Factory,ValueTypeListProxyNbtKeys.Factory,ValueTypeListProxyNbtValueListGeneric.Factory,ValueTypeListProxyOperatorMapped.Factory,ValueTypeListProxySlice.Factory,ValueTypeListProxyTail.Factory
public abstract class ValueTypeListProxyNBTFactorySimple<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V>>
extends Object
implements IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,V,P>
A base class for list proxy factories that use NBT to store data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given value.protected abstract PdeserializeNbt(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) net.minecraft.nbt.TagSerialize the given value.protected abstract voidserializeNbt(P value, net.minecraft.nbt.CompoundTag tag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueTypeListProxyFactoryTypeRegistry.IProxyFactory
getName
-
Constructor Details
-
ValueTypeListProxyNBTFactorySimple
public ValueTypeListProxyNBTFactorySimple()
-
-
Method Details
-
serialize
public net.minecraft.nbt.Tag serialize(P value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Description copied from interface:IValueTypeListProxyFactoryTypeRegistry.IProxyFactorySerialize the given value.- Specified by:
serializein interfaceIValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>> - Parameters:
value- The value to serialize.- Returns:
- The serialized value.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while serializing.
-
deserialize
public P deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Description copied from interface:IValueTypeListProxyFactoryTypeRegistry.IProxyFactoryDeserialize the given value.- Specified by:
deserializein interfaceIValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>> value- The value to deserialize.- Returns:
- The deserialized value.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while deserializing.
-
serializeNbt
protected abstract void serializeNbt(P value, net.minecraft.nbt.CompoundTag tag) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException -
deserializeNbt
protected abstract P deserializeNbt(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException, EvaluationException
-