Package me.deecaad.core.file.serializers
Class VectorSerializer
java.lang.Object
me.deecaad.core.file.serializers.VectorSerializer
- All Implemented Interfaces:
Serializer<VectorProvider>
Parse a vector from a string. Add ~ for relative input.
- 0
- r1.0
- 1 1 1
- left
- down
- ~1 1 0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull VectorProviderserialize(@NotNull me.deecaad.core.file.SerializeData data) Instantiates a new Object to be added into the finalized configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getKeyword, getName, getParentKeywords, getWikiLink, letPassThrough, shouldSerialize, tryPathTo, useLater
-
Constructor Details
-
VectorSerializer
public VectorSerializer()Default constructor for serializer.
-
-
Method Details
-
serialize
@NotNull public @NotNull VectorProvider serialize(@NotNull @NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException Description copied from interface:SerializerInstantiates a new Object to be added into the finalized configuration. The object should be built off ofSerializeData.getConfig(). If there is any misconfiguration (or any other issue preventing the construction of an object), then this method should throw aSerializerException. This method may not return null.- Specified by:
serializein interfaceSerializer<VectorProvider>- Parameters:
data- The non-null data containing config- Returns:
- The non-null serialized data.
- Throws:
me.deecaad.core.file.SerializerException- If there is an error in config.
-