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

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


    event.getMessages().add(new SoundEffectMessage(event.getSound().getName(), event.getPosition(), event.getVolume(), event.getPitch(), getRepositionManager()));
  }

  @EventHandler
  public void onExplosionEffect(PlayExplosionEffectEvent event) {
    event.getMessages().add(new ExplosionMessage(event.getPosition(), event.getSize(), new byte[0], getRepositionManager()));
  }
View Full Code Here


    byte[] coordinates = new byte[records * 3];
    buffer.readBytes(coordinates);
    buffer.readFloat(); // unknown (x?)
    buffer.readFloat(); // unknown (y?)
    buffer.readFloat(); // unknown (z?)
    return new ExplosionMessage(x, y, z, radius, coordinates, NullRepositionManager.getInstance());
  }
View Full Code Here

TOP

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

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.