Class LocationSerializer
java.lang.Object
dev.crafty.core.config.serializer.builtin.LocationSerializer
- All Implemented Interfaces:
ConfigSerializer<org.bukkit.Location>
- Since:
- 1.0.9
-
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 TypeMethodDescriptionOptional
<org.bukkit.Location> deserialize
(SectionWrapper section, String path) Deserialize an object from a configuration section.Class
<org.bukkit.Location> getType()
Get the type of object this serializer handles.void
serialize
(ConfigSerializer.SerializationArgs<org.bukkit.Location> args) 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
-
LocationSerializer
public LocationSerializer()
-
-
Method Details
-
serialize
Description copied from interface:ConfigSerializer
Serialize an object to a configuration section.- Specified by:
serialize
in interfaceConfigSerializer<org.bukkit.Location>
- Parameters:
args
- The serialization arguments
-
deserialize
Description copied from interface:ConfigSerializer
Deserialize an object from a configuration section.- Specified by:
deserialize
in interfaceConfigSerializer<org.bukkit.Location>
- 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<org.bukkit.Location>
- Returns:
- The class of the object type
-