Package org.spout.vanilla.protocol.msg.world

Examples of org.spout.vanilla.protocol.msg.world.SoundEffectMessage


    event.getMessages().add(new WindowPropertyMessage(event.getWindow(), event.getId(), event.getValue()));
  }

  @EventHandler
  public void onSoundEffect(PlaySoundEffectEvent event) {
    event.getMessages().add(new SoundEffectMessage(event.getSound().getName(), event.getPosition(), event.getVolume(), event.getPitch(), getRepositionManager()));
  }
View Full Code Here


    float x = (float) buffer.readInt() / 8.0f;
    float y = (float) buffer.readInt() / 8.0f;
    float z = (float) buffer.readInt() / 8.0f;
    float volume = buffer.readFloat();
    float pitch = 63f / (float) buffer.readUnsignedByte();
    return new SoundEffectMessage(soundName, x, y, z, volume, pitch, NullRepositionManager.getInstance());
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.world.SoundEffectMessage

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.