mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 20:16:19 +01:00
#704: Added explicit API to stop a Jukebox from playing
This commit is contained in:
parent
dba91d2ab6
commit
93cfb195ca
@ -77,6 +77,11 @@ public class CraftJukebox extends CraftBlockEntityState<TileEntityJukeBox> imple
|
|||||||
return getHandle().get(BlockJukeBox.HAS_RECORD);
|
return getHandle().get(BlockJukeBox.HAS_RECORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void stopPlaying() {
|
||||||
|
getWorld().playEffect(getLocation(), Effect.RECORD_PLAY, Material.AIR);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean eject() {
|
public boolean eject() {
|
||||||
requirePlaced();
|
requirePlaced();
|
||||||
|
Loading…
Reference in New Issue
Block a user