Examples of SpawnMobMessage


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

        int rotation = buf.readByte();
        int velX = buf.readShort();
        int velY = buf.readShort();
        int velZ = buf.readShort();
        List<MetadataMap.Entry> list = GlowBufUtils.readMetadata(buf);
        return new SpawnMobMessage(id, type, x, y, z, rotation, pitch, headPitch, velX, velY, velZ, list);
    }
View Full Code Here

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

        int x = Position.getIntX(location);
        int y = Position.getIntY(location);
        int z = Position.getIntZ(location);
        int yaw = Position.getIntYaw(location);
        int pitch = Position.getIntPitch(location);
        result.add(new SpawnMobMessage(id, type.getTypeId(), x, y, z, yaw, pitch, pitch, 0, 0, 0, metadata.getEntryList()));

        // head facing
        result.add(new EntityHeadRotationMessage(id, yaw));

        // todo: equipment
View Full Code Here

Examples of net.lightstone.msg.SpawnMobMessage

    int x = position.getPixelX();
    int y = position.getPixelY();
    int z = position.getPixelZ();
    int yaw = rotation.getIntYaw();
    int pitch = rotation.getIntPitch();
    return new SpawnMobMessage(id, type, x, y, z, yaw, pitch, metadata.clone());
  }
View Full Code Here

Examples of net.lightstone.msg.SpawnMobMessage

    int y = buffer.readInt();
    int z = buffer.readInt();
    int rotation = buffer.readUnsignedByte();
    int pitch = buffer.readUnsignedByte();
    Parameter<?>[] parameters = ChannelBufferUtils.readParameters(buffer);
    return new SpawnMobMessage(id, type, x, y, z, rotation, pitch, parameters);
  }
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.