Class ValueTypeListProxyNBTFactory<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V> & org.cyclops.cyclopscore.persist.nbt.INBTProvider>
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyNBTFactory<T,V,P>
- All Implemented Interfaces:
IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,V, P>
public class ValueTypeListProxyNBTFactory<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V> & org.cyclops.cyclopscore.persist.nbt.INBTProvider>
extends Object
implements IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,V,P>
Factory for list proxies that implement
INBTProvider.-
Constructor Summary
ConstructorsConstructorDescriptionValueTypeListProxyNBTFactory(net.minecraft.resources.ResourceLocation name, Class<P> proxyClass) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given value.net.minecraft.resources.ResourceLocationgetName()net.minecraft.nbt.TagSerialize the given value.
-
Constructor Details
-
ValueTypeListProxyNBTFactory
-
-
Method Details
-
getName
public net.minecraft.resources.ResourceLocation getName()- Specified by:
getNamein interfaceIValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V> & org.cyclops.cyclopscore.persist.nbt.INBTProvider> - Returns:
- The unique indentifier of this proxy.
-
getProxyClass
-
serialize
public net.minecraft.nbt.Tag serialize(P values) 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> & org.cyclops.cyclopscore.persist.nbt.INBTProvider> - Parameters:
values- 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> & org.cyclops.cyclopscore.persist.nbt.INBTProvider> value- The value to deserialize.- Returns:
- The deserialized value.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while deserializing.
-