Esempio n. 1
0
        public static void Spawn(Player dst, bool sendNow, sbyte id, string name,
                                 string skin, string model, Position pos, int rotX, int rotZ)
        {
            Send(dst, sendNow, SpawnPacket(dst, id, name, skin, pos));
            if (dst.Supports(CpeExt.ChangeModel))
            {
                Send(dst, sendNow, Packet.MakeChangeModel(id, model, dst.HasCP437));
            }

            if (dst.Supports(CpeExt.EntityProperty))
            {
                Send(dst, sendNow, Packet.MakeEntityProperty(id, EntityProp.RotationX, rotX));
                Send(dst, sendNow, Packet.MakeEntityProperty(id, EntityProp.RotationZ, rotZ));
            }
        }