예제 #1
0
        public static void SummonPacket(BaseEntity entity, MinecraftClient client)
        {
            switch (entity.SpawnMethode)
            {
            case SpawnMethodes.Mob:
                break;

            case SpawnMethodes.Object:
                client.Send(new SpawnObjectPacket(client)
                {
                    entity = entity
                });

                /*server.SendToAll(new UpdateEntityMetadataPacket(null)
                 * {
                 *  entity = entity
                 * }, x => pr(x));*/
                break;

            case SpawnMethodes.Spezial:
                break;
            }
        }