From 673aa7144b4b2a49e36e9e0cbbc5881a232ab9e6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 21 Dec 2012 23:55:02 -0600 Subject: [PATCH] Add firework api to get and set Firework ItemMeta By: feildmaster --- .../main/java/org/bukkit/entity/Firework.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/entity/Firework.java b/paper-api/src/main/java/org/bukkit/entity/Firework.java index 6b8f6c8b61..b613819298 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Firework.java +++ b/paper-api/src/main/java/org/bukkit/entity/Firework.java @@ -1,5 +1,19 @@ package org.bukkit.entity; -public interface Firework extends Entity { +import org.bukkit.inventory.meta.FireworkMeta; +public interface Firework extends Entity { + /** + * Get a copy of the fireworks meta + * + * @return A copy of the current Firework meta + */ + FireworkMeta getFireworkMeta(); + + /** + * Apply the provided meta to the fireworks + * + * @param meta The FireworkMeta to apply + */ + void setFireworkMeta(FireworkMeta meta); }