mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
#704: Added explicit API to stop a Jukebox from playing
By: Matthew Miller <mnmiller1@me.com>
This commit is contained in:
parent
b5dd5d4199
commit
0796e55598
@ -77,6 +77,11 @@ public class CraftJukebox extends CraftBlockEntityState<TileEntityJukeBox> imple
|
||||
return getHandle().get(BlockJukeBox.HAS_RECORD);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopPlaying() {
|
||||
getWorld().playEffect(getLocation(), Effect.RECORD_PLAY, Material.AIR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean eject() {
|
||||
requirePlaced();
|
||||
|
Loading…
Reference in New Issue
Block a user