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

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


    XPOrb xp = entity.add(XPOrb.class);
    int id = entity.getId();
    int x = (int) (entity.getPhysics().getPosition().getX() * 32);
    int y = (int) (entity.getPhysics().getPosition().getY() * 32);
    int z = (int) (entity.getPhysics().getPosition().getZ() * 32);
    return Arrays.<Message>asList(new EntityExperienceOrbMessage(id, x, y, z, xp.getExperience(), rm));
  }
View Full Code Here


    int id = buffer.readInt();
    int x = buffer.readInt();
    int y = buffer.readInt();
    int z = buffer.readInt();
    short count = buffer.readShort();
    return new EntityExperienceOrbMessage(id, x, y, z, count, NullRepositionManager.getInstance());
  }
View Full Code Here

TOP

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

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.