From 381fba2cd0c6c30b327c1c5edb1920427b4dd94f Mon Sep 17 00:00:00 2001 From: simpleauthority Date: Tue, 11 Sep 2018 00:07:14 -0700 Subject: SPIGOT-4314: Ability to change item in frame without playing sound --- src/main/java/org/bukkit/entity/ItemFrame.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/entity/ItemFrame.java b/src/main/java/org/bukkit/entity/ItemFrame.java index 8b86815d..6ff651ad 100644 --- a/src/main/java/org/bukkit/entity/ItemFrame.java +++ b/src/main/java/org/bukkit/entity/ItemFrame.java @@ -22,6 +22,14 @@ public interface ItemFrame extends Hanging { */ public void setItem(ItemStack item); + /** + * Set the item in this frame + * + * @param item the new item + * @param playSound whether or not to play the item placement sound + */ + public void setItem(ItemStack item, boolean playSound); + /** * Get the rotation of the frame's item * -- cgit v1.2.3