Class LocationSerializer
java.lang.Object
tech.guilhermekaua.spigotboot.config.spigot.serialization.LocationSerializer
- All Implemented Interfaces:
TypeSerializer<org.bukkit.Location>
Serializer for Bukkit Location.
Supports both scalar format "world,x,y,z[,yaw,pitch]" and section format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Locationdeserialize(@NotNull ConfigNode node, @NotNull Class<org.bukkit.Location> type) voidserialize(@NotNull org.bukkit.Location value, @NotNull MutableConfigNode node) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tech.guilhermekaua.spigotboot.config.serialization.TypeSerializer
canHandle
-
Constructor Details
-
LocationSerializer
public LocationSerializer()
-
-
Method Details
-
deserialize
public org.bukkit.Location deserialize(@NotNull @NotNull ConfigNode node, @NotNull @NotNull Class<org.bukkit.Location> type) throws SerializationException - Specified by:
deserializein interfaceTypeSerializer<org.bukkit.Location>- Throws:
SerializationException
-
serialize
public void serialize(@NotNull @NotNull org.bukkit.Location value, @NotNull @NotNull MutableConfigNode node) throws SerializationException - Specified by:
serializein interfaceTypeSerializer<org.bukkit.Location>- Throws:
SerializationException
-