13
0
geforkt von Mirrors/Paper

#704: Added explicit API to stop a Jukebox from playing

By: Matthew Miller <mnmiller1@me.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2020-07-10 09:02:21 +10:00
Ursprung b5dd5d4199
Commit 0796e55598

Datei anzeigen

@ -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();