Package org.spoutcraft.api.sound

Examples of org.spoutcraft.api.sound.SoundEffect


  public void run(int entityId) {
    EntityPlayer e = SpoutClient.getInstance().getPlayerFromId(entityId);
    if (e != null) {
        SoundManager sndManager = SpoutClient.getHandle().sndManager;
        if (soundId > -1 && soundId <= SoundEffect.getMaxId()) {
          SoundEffect effect = SoundEffect.getSoundEffectFromId(soundId);
          if (!location) {
            sndManager.playSoundFX(effect.getName(), 0.5F, 0.7F, effect.getVariationId(), volume / 100F);
          } else {
            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);
View Full Code Here

TOP

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

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.