Class VectorSerializer

java.lang.Object
me.deecaad.core.file.serializers.VectorSerializer
All Implemented Interfaces:
Serializer<VectorProvider>

public class VectorSerializer extends Object implements Serializer<VectorProvider>
Parse a vector from a string. Add ~ for relative input.
  • 0
  • r1.0
  • 1 1 1
  • left
  • down
  • ~1 1 0
  • 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: Serializer
      Instantiates a new Object to be added into the finalized configuration. The object should be built off of SerializeData.getConfig(). If there is any misconfiguration (or any other issue preventing the construction of an object), then this method should throw a SerializerException. This method may not return null.
      Specified by:
      serialize in interface Serializer<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.