Class ValueTypeListProxyFactoryTypeRegistry
java.lang.Object
org.cyclops.integrateddynamics.core.evaluate.variable.ValueTypeListProxyFactoryTypeRegistry
- All Implemented Interfaces:
org.cyclops.cyclopscore.init.IRegistry,IValueTypeListProxyFactoryTypeRegistry
public class ValueTypeListProxyFactoryTypeRegistry
extends Object
implements IValueTypeListProxyFactoryTypeRegistry
Registry for list value type proxies.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.evaluate.variable.IValueTypeListProxyFactoryTypeRegistry
IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>>, IValueTypeListProxyFactoryTypeRegistry.SerializationException -
Method Summary
Modifier and TypeMethodDescription<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>>
Pdeserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) Deserialize the given serialized list proxy to a list proxy instance.<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>>
IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,V, P> getFactory(net.minecraft.resources.ResourceLocation name) Get a proxy factory by name<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>, F extends IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T, V, P>>
Fregister(F proxyFactory) Register a proxy factory by name.<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>>
net.minecraft.nbt.Tagserialize(P proxy) Serialize the given list proxy.
-
Method Details
-
getInstance
- Returns:
- The unique instance.
-
register
public <T extends IValueType<V>,V extends IValue, F registerP extends IValueTypeListProxy<T, V>, F extends IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T, V, P>> (F proxyFactory) Description copied from interface:IValueTypeListProxyFactoryTypeRegistryRegister a proxy factory by name.- Specified by:
registerin interfaceIValueTypeListProxyFactoryTypeRegistry- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.F- The factory type.- Parameters:
proxyFactory- The proxy factory.- Returns:
- The registered instance.
-
getFactory
public <T extends IValueType<V>,V extends IValue, IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,P extends IValueTypeListProxy<T, V>> V, getFactoryP> (net.minecraft.resources.ResourceLocation name) Description copied from interface:IValueTypeListProxyFactoryTypeRegistryGet a proxy factory by name- Specified by:
getFactoryin interfaceIValueTypeListProxyFactoryTypeRegistry- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.- Parameters:
name- The name.- Returns:
- The corresponding instance.
-
serialize
public <T extends IValueType<V>,V extends IValue, net.minecraft.nbt.Tag serializeP extends IValueTypeListProxy<T, V>> (P proxy) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Description copied from interface:IValueTypeListProxyFactoryTypeRegistrySerialize the given list proxy.- Specified by:
serializein interfaceIValueTypeListProxyFactoryTypeRegistry- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.- Parameters:
proxy- The proxy to serialize.- Returns:
- The serialized string.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while serializing.
-
deserialize
public <T extends IValueType<V>,V extends IValue, P deserializeP extends IValueTypeListProxy<T, V>> (ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Description copied from interface:IValueTypeListProxyFactoryTypeRegistryDeserialize the given serialized list proxy to a list proxy instance.- Specified by:
deserializein interfaceIValueTypeListProxyFactoryTypeRegistry- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.value- The serialized list proxy.- Returns:
- The deserialized list proxy.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while serializing.
-