Package net.lightstone.msg

Examples of net.lightstone.msg.SoundEffectMessage


    int id = buffer.readInt();
    int x = buffer.readInt();
    int y = buffer.readUnsignedByte();
    int z = buffer.readInt();
    int data = buffer.readInt();
    return new SoundEffectMessage(id, x, y, z, data);
  }
View Full Code Here


      int oldType = chunk.getType(localX, localZ, y);
      chunk.setType(localX, localZ, y, Blocks.TYPE_AIR);

      // TODO this should also be somewhere else as well... perhaps in the chunk.setType() method itself?
      BlockChangeMessage bcmsg = new BlockChangeMessage(x, y, z, 0, 0);
      SoundEffectMessage soundMsg = new SoundEffectMessage(SoundEffectMessage.DIG_SOUND, x, y, z, oldType);
      for (Player p: world.getPlayers()) {
        p.getSession().send(bcmsg);
        if(p != player && player.isWithinDistance(p)) {
          p.getSession().send(soundMsg);
        }
View Full Code Here

TOP

Related Classes of net.lightstone.msg.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.