Package net.minecraft.src

Examples of net.minecraft.src.SoundManager.playMusic()


      }
      if (!sndManager.hasMusic(song.getName().toString(), 0) && !soundEffect) {
        sndManager.addCustomMusic(song.getName().toString(), song);
      }
      if (!soundEffect) {
        sndManager.playMusic(song.getName().toString(), 0, x, y, z, volume / 100F, distance);
      } else {
        sndManager.playCustomSoundEffect(song.getName().toString(), x, y, z, volume / 100F, distance);
      }
      return true;
    }
View Full Code Here


          }
        }
        soundId -= (1 + SoundEffect.getMaxId());
        if (soundId > -1 && soundId <= Music.getMaxId()) {
          Music music = Music.getMusicFromId(soundId);
          sndManager.playMusic(music.getName(), music.getSoundId(), volume / 100F);
        }
    }
  }

  public PacketType getPacketType() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.