Example #1
0
        public static void ReadKeepAlive(TestClient client, PacketReader reader)
        {
            KeepAlivePacket ka = new KeepAlivePacket();
            ka.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketKeepAlive(client, ka);
        }
Example #2
0
        public static void ReadTimeUpdate(TestClient client, PacketReader reader)
        {
            TimeUpdatePacket tu = new TimeUpdatePacket();

            tu.Read(reader);
        }
Example #3
0
 public static void HandlePacketLoginRequest(TestClient client, LoginRequestPacket lr)
 {
     // Do something when logged
     client.StartTimer();
 }
Example #4
0
 public static void ReadUpdateSign(TestClient client, PacketReader reader)
 {
     UpdateSignPacket us = new UpdateSignPacket();
     us.Read(reader);
 }
Example #5
0
 public static void ReadSoundEffect(TestClient client, PacketReader reader)
 {
     SoundOrParticleEffectPacket se = new SoundOrParticleEffectPacket();
     se.Read(reader);
 }
Example #6
0
 public static void ReadPickupSpawn(TestClient client, PacketReader reader)
 {
     SpawnItemPacket si = new SpawnItemPacket();
     si.Read(reader);
 }
Example #7
0
 public static void ReadMobSpawn(TestClient client, PacketReader reader)
 {
     MobSpawnPacket ms = new MobSpawnPacket();
     ms.Read(reader);
 }
Example #8
0
 public static void ReadEntityStatus(TestClient client, PacketReader reader)
 {
     EntityStatusPacket es = new EntityStatusPacket();
     es.Read(reader);
 }
Example #9
0
        public static void ReadEntityLookAndRelativeMove(TestClient client, PacketReader reader)
        {
            EntityLookAndRelativeMovePacket ela = new EntityLookAndRelativeMovePacket();

            ela.Read(reader);
        }
Example #10
0
        public static void ReadEntityRelativeMove(TestClient client, PacketReader reader)
        {
            EntityRelativeMovePacket er = new EntityRelativeMovePacket();

            er.Read(reader);
        }
Example #11
0
        public static void ReadEntityLook(TestClient client, PacketReader reader)
        {
            EntityLookPacket el = new EntityLookPacket();

            el.Read(reader);
        }
Example #12
0
        public static void ReadEntity(TestClient client, PacketReader reader)
        {
            CreateEntityPacket ce = new CreateEntityPacket();

            ce.Read(reader);
        }
Example #13
0
        public static void ReadNamedEntitySpawn(TestClient client, PacketReader reader)
        {
            NamedEntitySpawnPacket bc = new NamedEntitySpawnPacket();

            bc.Read(reader);
        }
Example #14
0
        public static void ReadMultiBlockChange(TestClient client, PacketReader reader)
        {
            MultiBlockChangePacket mbc = new MultiBlockChangePacket();

            mbc.Read(reader);
        }
Example #15
0
        public static void ReadBlockChange(TestClient client, PacketReader reader)
        {
            BlockChangePacket bc = new BlockChangePacket();

            bc.Read(reader);
        }
Example #16
0
 public static void ReadEntityLook(TestClient client, PacketReader reader)
 {
     EntityLookPacket el = new EntityLookPacket();
     el.Read(reader);
 }
Example #17
0
 public static void ReadEntityMetadata(TestClient client, PacketReader reader)
 {
     EntityMetadataPacket em = new EntityMetadataPacket();
     em.Read(reader);
 }
Example #18
0
        public static void ReadEntityTeleport(TestClient client, PacketReader reader)
        {
            EntityTeleportPacket et = new EntityTeleportPacket();

            et.Read(reader);
        }
Example #19
0
        public static void ReadLoginRequest(TestClient client, PacketReader reader)
        {
            LoginRequestPacket lr = new LoginRequestPacket();
            lr.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketLoginRequest(client, lr);
        }
Example #20
0
        public static void ReadEntityStatus(TestClient client, PacketReader reader)
        {
            EntityStatusPacket es = new EntityStatusPacket();

            es.Read(reader);
        }
Example #21
0
 public static void ReadNamedEntitySpawn(TestClient client, PacketReader reader)
 {
     NamedEntitySpawnPacket bc = new NamedEntitySpawnPacket();
     bc.Read(reader);
 }
Example #22
0
        public static void ReadMobSpawn(TestClient client, PacketReader reader)
        {
            MobSpawnPacket ms = new MobSpawnPacket();

            ms.Read(reader);
        }
Example #23
0
        public static void ReadPlayerPositionRotation(TestClient client, PacketReader reader)
        {
            PlayerPositionRotationPacket ppr = new PlayerPositionRotationPacket();
            ppr.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketPlayerPositionRotation(client, ppr);
        }
Example #24
0
        public static void ReadNewInvalidState(TestClient client, PacketReader reader)
        {
            NewInvalidStatePacket ni = new NewInvalidStatePacket();

            ni.Read(reader);
        }
Example #25
0
 public static void ReadTimeUpdate(TestClient client, PacketReader reader)
 {
     TimeUpdatePacket tu = new TimeUpdatePacket();
     tu.Read(reader);
 }
Example #26
0
        public static void ReadUpdateSign(TestClient client, PacketReader reader)
        {
            UpdateSignPacket us = new UpdateSignPacket();

            us.Read(reader);
        }
Example #27
0
 public static void ReadAnimation(TestClient client, PacketReader reader)
 {
     AnimationPacket ap = new AnimationPacket();
     ap.Read(reader);
 }
Example #28
0
        public static void ReadSetSlot(TestClient client, PacketReader reader)
        {
            SetSlotPacket ss = new SetSlotPacket();

            ss.Read(reader);
        }
Example #29
0
 public static void HandlePacketChatMessage(TestClient client, ChatMessagePacket cm)
 {
     // Handle some commands?
 }
Example #30
0
        public static void ReadPlayerListItem(TestClient client, PacketReader reader)
        {
            PlayerListItemPacket pl = new PlayerListItemPacket();

            pl.Read(reader);
        }
Example #31
0
 public static void ReadEntityEquipment(TestClient client, PacketReader reader)
 {
     EntityEquipmentPacket ee = new EntityEquipmentPacket();
     ee.Read(reader);
 }
Example #32
0
        public static void ReadUpdateHealth(TestClient client, PacketReader reader)
        {
            UpdateHealthPacket uh = new UpdateHealthPacket();

            uh.Read(reader);
        }
Example #33
0
 public static void ReadEntityLookAndRelativeMove(TestClient client, PacketReader reader)
 {
     EntityLookAndRelativeMovePacket ela = new EntityLookAndRelativeMovePacket();
     ela.Read(reader);
 }
Example #34
0
        public static void ReadEntityEquipment(TestClient client, PacketReader reader)
        {
            EntityEquipmentPacket ee = new EntityEquipmentPacket();

            ee.Read(reader);
        }
Example #35
0
 public static void ReadEntityRelativeMove(TestClient client, PacketReader reader)
 {
     EntityRelativeMovePacket er = new EntityRelativeMovePacket();
     er.Read(reader);
 }
Example #36
0
        public static void ReadDestroyEntity(TestClient client, PacketReader reader)
        {
            DestroyEntityPacket de = new DestroyEntityPacket();

            de.Read(reader);
        }
Example #37
0
 public static void ReadEntityTeleport(TestClient client, PacketReader reader)
 {
     EntityTeleportPacket et = new EntityTeleportPacket();
     et.Read(reader);
 }
Example #38
0
        public static void ReadAnimation(TestClient client, PacketReader reader)
        {
            AnimationPacket ap = new AnimationPacket();

            ap.Read(reader);
        }
Example #39
0
 public static void ReadMapChunk(TestClient client, PacketReader reader)
 {
     MapChunkPacket mc = new MapChunkPacket();
     mc.Read(reader);
 }
Example #40
0
        public static void ReadPickupSpawn(TestClient client, PacketReader reader)
        {
            SpawnItemPacket si = new SpawnItemPacket();

            si.Read(reader);
        }
Example #41
0
 public static void ReadMultiBlockChange(TestClient client, PacketReader reader)
 {
     MultiBlockChangePacket mbc = new MultiBlockChangePacket();
     mbc.Read(reader);
 }
Example #42
0
        public static void ReadCollectItem(TestClient client, PacketReader reader)
        {
            CollectItemPacket ci = new CollectItemPacket();

            ci.Read(reader);
        }
Example #43
0
 public static void ReadNewInvalidState(TestClient client, PacketReader reader)
 {
     NewInvalidStatePacket ni = new NewInvalidStatePacket();
     ni.Read(reader);
 }
Example #44
0
        public static void ReadUpdateWindowProperty(TestClient client, PacketReader reader)
        {
            UpdateWindowPropertyPacket up = new UpdateWindowPropertyPacket();

            up.Read(reader);
        }
Example #45
0
 public static void ReadPlayerListItem(TestClient client, PacketReader reader)
 {
     PlayerListItemPacket pl = new PlayerListItemPacket();
     pl.Read(reader);
 }
Example #46
0
        public static void ReadEntityMetadata(TestClient client, PacketReader reader)
        {
            EntityMetadataPacket em = new EntityMetadataPacket();

            em.Read(reader);
        }
Example #47
0
 public static void ReadSetSlot(TestClient client, PacketReader reader)
 {
     SetSlotPacket ss = new SetSlotPacket();
     ss.Read(reader);
 }
Example #48
0
        public static void ReadSoundEffect(TestClient client, PacketReader reader)
        {
            SoundOrParticleEffectPacket se = new SoundOrParticleEffectPacket();

            se.Read(reader);
        }
Example #49
0
        public static void ReadSpawnPosition(TestClient client, PacketReader reader)
        {
            SpawnPositionPacket si = new SpawnPositionPacket();
            si.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketSpawnPosition(client, si);
        }
Example #50
0
 public static void ReadCollectItem(TestClient client, PacketReader reader)
 {
     CollectItemPacket ci = new CollectItemPacket();
     ci.Read(reader);
 }
Example #51
0
 public static void ReadUpdateHealth(TestClient client, PacketReader reader)
 {
     UpdateHealthPacket uh = new UpdateHealthPacket();
     uh.Read(reader);
 }
Example #52
0
 public static void ReadDestroyEntity(TestClient client, PacketReader reader)
 {
     DestroyEntityPacket de = new DestroyEntityPacket();
     de.Read(reader);
 }
Example #53
0
 public static void ReadUpdateWindowProperty(TestClient client, PacketReader reader)
 {
     UpdateWindowPropertyPacket up = new UpdateWindowPropertyPacket();
     up.Read(reader);
 }
Example #54
0
        public static void ReadDisconnect(TestClient client, PacketReader reader)
        {
            DisconnectPacket dp = new DisconnectPacket();
            dp.Read(reader);

            if (!reader.Failed)
                TestClient.HandlePacketDisconnect(client, dp);
        }
Example #55
0
 public static void HandlePacketKeepAlive(TestClient client, KeepAlivePacket ka)
 {
     client.SendPacket(new KeepAlivePacket());
 }
Example #56
0
 public static void ReadEntity(TestClient client, PacketReader reader)
 {
     CreateEntityPacket ce = new CreateEntityPacket();
     ce.Read(reader);
 }
Example #57
0
 public static void HandlePacketHandshake(TestClient client, HandshakePacket hp)
 {
     client.SendPacket(new LoginRequestPacket {
         ProtocolOrEntityId = 19, Username = client.UserName
     });
 }
Example #58
0
        public static void ReadEntityAction(TestClient client, PacketReader reader)
        {
            EntityActionPacket ea = new EntityActionPacket();
            ea.Read(reader);

            // TODO: implement this packet
            /*if (!reader.Failed)
                Client.HandlePacketEntityAction(client, ea);*/
        }
Example #59
0
 public static void HandlePacketSpawnPosition(TestClient client, SpawnPositionPacket sp)
 {
     client.SpawnPosition = UniversalCoords.FromWorld(sp.X, sp.Y, sp.Z);
 }
Example #60
0
        public static void ReadMapChunk(TestClient client, PacketReader reader)
        {
            MapChunkPacket mc = new MapChunkPacket();

            mc.Read(reader);
        }