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);
}