13
0
geforkt von Mirrors/Paper

SPIGOT-4314: Ability to change item in frame without playing sound

By: simpleauthority <jacob@algorithmjunkie.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2018-09-11 00:07:14 -07:00
Ursprung 4b889af28d
Commit 5f1c3987ab

Datei anzeigen

@ -22,6 +22,14 @@ public interface ItemFrame extends Hanging {
*/ */
public void setItem(ItemStack item); 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 * Get the rotation of the frame's item
* *