Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
#704: Added explicit API to stop a Jukebox from playing
Dieser Commit ist enthalten in:
Ursprung
dba91d2ab6
Commit
93cfb195ca
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren