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:
Ursprung
b5dd5d4199
Commit
0796e55598
@ -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();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren