mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-22 08:11:59 +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
@ -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 New Issue
Block a user