Class SoundSerializer
java.lang.Object
tech.guilhermekaua.spigotboot.config.spigot.serialization.SoundSerializer
- All Implemented Interfaces:
TypeSerializer<org.bukkit.Sound>
Cross-version serializer for
Sound. Sound is an enum up to MC 1.21.2 and an
interface from 1.21.3 on; resolution is delegated to SoundCompat so the same config
works on every supported server.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Sounddeserialize(@NotNull ConfigNode node, @NotNull Class<org.bukkit.Sound> type) voidserialize(@NotNull org.bukkit.Sound 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
-
SoundSerializer
public SoundSerializer()
-
-
Method Details
-
deserialize
public org.bukkit.Sound deserialize(@NotNull @NotNull ConfigNode node, @NotNull @NotNull Class<org.bukkit.Sound> type) throws SerializationException - Specified by:
deserializein interfaceTypeSerializer<org.bukkit.Sound>- Throws:
SerializationException
-
serialize
public void serialize(@NotNull @NotNull org.bukkit.Sound value, @NotNull @NotNull MutableConfigNode node) throws SerializationException - Specified by:
serializein interfaceTypeSerializer<org.bukkit.Sound>- Throws:
SerializationException
-