Interface IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V>>
- Type Parameters:
T- The list element type value type.V- The list element type.P- The proxy type.
- All Known Implementing Classes:
ValueTypeListProxyAppend.Factory,ValueTypeListProxyConcat.Factory,ValueTypeListProxyLazyBuilt.Factory,ValueTypeListProxyMaterializedFactory,ValueTypeListProxyNbtAsListByte.Factory,ValueTypeListProxyNbtAsListGeneric.Factory,ValueTypeListProxyNbtAsListInt.Factory,ValueTypeListProxyNbtAsListLong.Factory,ValueTypeListProxyNbtAsListTag.Factory,ValueTypeListProxyNBTFactory,ValueTypeListProxyNBTFactorySimple,ValueTypeListProxyNbtKeys.Factory,ValueTypeListProxyNbtValueListByte.Factory,ValueTypeListProxyNbtValueListGeneric.Factory,ValueTypeListProxyNbtValueListInt.Factory,ValueTypeListProxyNbtValueListLong.Factory,ValueTypeListProxyNbtValueListTag.Factory,ValueTypeListProxyOperatorMapped.Factory,ValueTypeListProxySlice.Factory,ValueTypeListProxyTail.Factory
- Enclosing interface:
- IValueTypeListProxyFactoryTypeRegistry
public static interface IValueTypeListProxyFactoryTypeRegistry.IProxyFactory<T extends IValueType<V>,V extends IValue,P extends IValueTypeListProxy<T,V>>
Factory for a list proxy.
-
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.
-
Method Details
-
getName
net.minecraft.resources.ResourceLocation getName()- Returns:
- The unique indentifier of this proxy.
-
serialize
net.minecraft.nbt.Tag serialize(P value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Serialize the given value.- Parameters:
value- The value to serialize.- Returns:
- The serialized value.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while serializing.
-
deserialize
P deserialize(ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.Tag value) throws IValueTypeListProxyFactoryTypeRegistry.SerializationException Deserialize the given value.- Parameters:
valueDeseralizationContext-value- The value to deserialize.- Returns:
- The deserialized value.
- Throws:
IValueTypeListProxyFactoryTypeRegistry.SerializationException- If something goes wrong while deserializing.
-