Examples of SpawnObjectMessage


Examples of net.glowstone.net.message.play.entity.SpawnObjectMessage

        int data = buf.readInt();
        if (data != 0) {
            int velX = buf.readShort();
            int velY = buf.readShort();
            int velZ = buf.readShort();
            return new SpawnObjectMessage(id, type, x, y, z, pitch, yaw, data, velX, velY, velZ);
        }
        return new SpawnObjectMessage(id, type, x, y, z, pitch, yaw);
    }
View Full Code Here

Examples of net.glowstone.net.message.play.entity.SpawnObjectMessage

        int yaw = Position.getIntYaw(location);
        int pitch = Position.getIntPitch(location);

        return Arrays.asList(
                new SpawnObjectMessage(id, 2, x, y, z, pitch, yaw),
                new EntityMetadataMessage(id, metadata.getEntryList()),
                // these keep the client from assigning a random velocity
                new EntityTeleportMessage(id, x, y, z, yaw, pitch),
                new EntityVelocityMessage(id, getVelocity())
        );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.