Package org.spoutcraft.api.sound

Examples of org.spoutcraft.api.sound.Music


            // Spout Start
            if (SpoutClient.getInstance().isSpoutEnabled()) {
              EntityPlayer player = SpoutClient.getHandle().thePlayer;
              if (player instanceof EntityClientPlayerMP) {
                if (waitingSound == null) {
                  Music music = Music.getMusicFromName(var1.soundName);
                  if (music != null) {
                    waitingSound = var1;
                    SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketMusicChange(music.getId(), (int)options.musicVolume * 100));
                    return;
                  }
                } else if (allowed) {
                  var1 = waitingSound;
                  waitingSound = null;
View Full Code Here


            sndManager.playSound(effect.getName(), x, y, z, 0.5F, (distance / 16F), effect.getVariationId(), volume / 100F);
          }
        }
        soundId -= (1 + SoundEffect.getMaxId());
        if (soundId > -1 && soundId <= Music.getMaxId()) {
          Music music = Music.getMusicFromId(soundId);
          sndManager.playMusic(music.getName(), music.getSoundId(), volume / 100F);
        }
    }
  }
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.sound.Music

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.