Class FireworkMechanic.FireworkData
java.lang.Object
me.deecaad.core.mechanics.defaultmechanics.FireworkMechanic.FireworkData
- All Implemented Interfaces:
InlineSerializer<FireworkMechanic.FireworkData>,Serializer<FireworkMechanic.FireworkData>,net.kyori.adventure.key.Keyed,org.bukkit.Keyed
- Enclosing class:
FireworkMechanic
public static class FireworkMechanic.FireworkData
extends Object
implements InlineSerializer<FireworkMechanic.FireworkData>
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.deecaad.core.file.InlineSerializer
InlineSerializer.FormatException -
Field Summary
Fields inherited from interface me.deecaad.core.file.InlineSerializer
NAME_FINDER, UNIQUE_IDENTIFIER -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for serializerFireworkData(org.bukkit.FireworkEffect effect) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.FireworkEffect@NotNull org.bukkit.NamespacedKeygetKey()@NotNull FireworkMechanic.FireworkDataserialize(@NotNull me.deecaad.core.file.SerializeData data) Instantiates a new Object to be added into the finalized configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.deecaad.core.file.InlineSerializer
getInlineKeyword, getKeyword, shouldSerializeMethods inherited from interface org.bukkit.Keyed
keyMethods inherited from interface me.deecaad.core.file.Serializer
canUsePathTo, getName, getParentKeywords, getWikiLink, letPassThrough, tryPathTo, useLater
-
Constructor Details
-
FireworkData
public FireworkData()Default constructor for serializer -
FireworkData
public FireworkData(org.bukkit.FireworkEffect effect)
-
-
Method Details
-
getEffect
public org.bukkit.FireworkEffect getEffect() -
getKey
@NotNull public @NotNull org.bukkit.NamespacedKey getKey()- Specified by:
getKeyin interfaceInlineSerializer<FireworkMechanic.FireworkData>- Specified by:
getKeyin interfaceorg.bukkit.Keyed
-
serialize
@NotNull public @NotNull FireworkMechanic.FireworkData serialize(@NotNull @NotNull me.deecaad.core.file.SerializeData data) throws me.deecaad.core.file.SerializerException Description copied from interface:SerializerInstantiates a new Object to be added into the finalized configuration. The object should be built off ofSerializeData.getConfig(). If there is any misconfiguration (or any other issue preventing the construction of an object), then this method should throw aSerializerException. This method may not return null.- Specified by:
serializein interfaceSerializer<FireworkMechanic.FireworkData>- 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.
-