Interface IValueTypeListProxyFactoryTypeRegistry
- All Superinterfaces:
org.cyclops.cyclopscore.init.IRegistry
- All Known Implementing Classes:
ValueTypeListProxyFactoryTypeRegistry
public interface IValueTypeListProxyFactoryTypeRegistry
extends org.cyclops.cyclopscore.init.IRegistry
Registry for list value type proxies.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue, P extends IValueTypeListProxy<T, V>> Factory for a list proxy.static classIf something goes wrong while (de)serializing. -
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
-
register
<T extends IValueType<V>,V extends IValue, F registerP extends IValueTypeListProxy<T, V>, F extends IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T, V, P>> (F proxyFactory) Register a proxy factory by name.- 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
<T extends IValueType<V>,V extends IValue, IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T,P extends IValueTypeListProxy<T, V>> V, getFactoryP> (net.minecraft.resources.ResourceLocation name) Get a proxy factory by name- 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
<T extends IValueType<V>,V extends IValue, net.minecraft.nbt.Tag serializeP extends IValueTypeListProxy<T, V>> (P proxy) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Serialize the given list proxy.- 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
<T extends IValueType<V>,V extends IValue, P deserializeP extends IValueTypeListProxy<T, V>> (ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Deserialize the given serialized list proxy to a list proxy instance.- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.- Parameters:
valueDeseralizationContext-value- The serialized list proxy.- Returns:
- The deserialized list proxy.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while serializing.
-