Package org.spout.vanilla.protocol.msg.entity.spawn

Examples of org.spout.vanilla.protocol.msg.entity.spawn.EntityThunderboltMessage


    int id = buffer.readInt();
    int mode = buffer.readUnsignedByte();
    int x = buffer.readInt() / 32;
    int y = buffer.readInt() / 32;
    int z = buffer.readInt() / 32;
    return new EntityThunderboltMessage(id, mode, x, y, z, NullRepositionManager.getInstance());
  }
View Full Code Here


public class LightningEntityProtocol extends VanillaEntityProtocol {
  @Override
  public List<Message> getSpawnMessages(Entity entity, RepositionManager rm) {
    Point pos = entity.getPhysics().getPosition();
    return Arrays.<Message>asList(new EntityThunderboltMessage(entity.getId(), pos.getBlockX(), pos.getBlockY(), pos.getBlockZ(), rm));
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.msg.entity.spawn.EntityThunderboltMessage

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.