Class Polygon3dSerializer
java.lang.Object
dev.crafty.core.geometry.serializers.Polygon3dSerializer
- All Implemented Interfaces:
ConfigSerializer<Polygon3d>
- Since:
- 1.0.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.crafty.core.config.serializer.ConfigSerializer
ConfigSerializer.SerializationArgs<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(SectionWrapper section, String path) Deserialize an object from a configuration section.getType()
Get the type of object this serializer handles.void
Serialize an object to a configuration section.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.crafty.core.config.serializer.ConfigSerializer
getSerializer, save
-
Constructor Details
-
Polygon3dSerializer
public Polygon3dSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ConfigSerializer
Serialize an object to a configuration section.- Specified by:
serialize
in interfaceConfigSerializer<Polygon3d>
- Parameters:
args
- The serialization arguments
-
deserialize
Description copied from interface:ConfigSerializer
Deserialize an object from a configuration section.- Specified by:
deserialize
in interfaceConfigSerializer<Polygon3d>
- Parameters:
section
- The configuration section to deserialize frompath
- The path within the section to deserialize from- Returns:
- The deserialized object
-
getType
Description copied from interface:ConfigSerializer
Get the type of object this serializer handles.- Specified by:
getType
in interfaceConfigSerializer<Polygon3d>
- Returns:
- The class of the object type
-