mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
SPIGOT-4314: Ability to change item in frame without playing sound
By: simpleauthority <jacob@algorithmjunkie.com>
This commit is contained in:
parent
4b889af28d
commit
5f1c3987ab
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue