summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsimpleauthority <jacob@algorithmjunkie.com>2018-09-11 00:07:14 -0700
committermd_5 <git@md-5.net>2018-09-11 20:30:41 +1000
commit381fba2cd0c6c30b327c1c5edb1920427b4dd94f (patch)
treedb1f5cb21d4637aa030ce4f303dd69c5152574d3 /src
parent3e2858f6e680d43b85a760866df1fb4c1f9547b9 (diff)
downloadbukkit-381fba2cd0c6c30b327c1c5edb1920427b4dd94f.tar
bukkit-381fba2cd0c6c30b327c1c5edb1920427b4dd94f.tar.gz
bukkit-381fba2cd0c6c30b327c1c5edb1920427b4dd94f.tar.lz
bukkit-381fba2cd0c6c30b327c1c5edb1920427b4dd94f.tar.xz
bukkit-381fba2cd0c6c30b327c1c5edb1920427b4dd94f.zip
SPIGOT-4314: Ability to change item in frame without playing sound
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/entity/ItemFrame.java8
1 files changed, 8 insertions, 0 deletions
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
@@ -23,6 +23,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
*
* @return the direction