use of cn.nukkit.network.protocol.StopSoundPacket in project Nukkit by Nukkit.
the class BlockEntityJukebox method stop.
public void stop() {
if (this.recordItem instanceof ItemRecord) {
StopSoundPacket pk = new StopSoundPacket();
pk.name = ((ItemRecord) this.recordItem).getSoundId();
Server.broadcastPacket(this.level.getPlayers().values(), pk);
}
}
Aggregations