From 5f1c3987ab4c7e3e314a2db5f62b8f9af4e91fe3 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 11 Sep 2018 00:07:14 -0700 Subject: [PATCH] SPIGOT-4314: Ability to change item in frame without playing sound By: simpleauthority --- paper-api/src/main/java/org/bukkit/entity/ItemFrame.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/ItemFrame.java b/paper-api/src/main/java/org/bukkit/entity/ItemFrame.java index 8b86815d2d..6ff651adea 100644 --- a/paper-api/src/main/java/org/bukkit/entity/ItemFrame.java +++ b/paper-api/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 *