public void HandleEntityStatus(MinecraftClient client, IPacket packet) {
            var myPacket = (CBEntityStatus)packet;

            if (client.MinecraftWorld != null) {
                int eIndex = client.MinecraftWorld.GetEntityById(myPacket.EntityID);

                if (eIndex != -1)
                    client.MinecraftWorld.Entities[eIndex].status = myPacket.EntityStatus;
            }

            client.RaiseEntityStatus(myPacket.EntityID);
        }
        public void HandleRemoveEntityEffect(MinecraftClient client, IPacket packet) {
            var myPacket = (CBRemoveEntityEffect)packet;

            if (client.MinecraftWorld != null) {
                int eIndex = client.MinecraftWorld.GetEntityById(myPacket.EntityID);

                if (eIndex != -1) {
                    client.MinecraftWorld.Entities[eIndex].status = myPacket.EffectID;
                    client.RaiseEntityStatus(myPacket.EntityID);
                }
            }
        }
        public void HandleEntityEffect(MinecraftClient client, IPacket packet) {
            var myPacket = (CBEntityEffect)packet;

            if (client.MinecraftWorld == null)
                return;

            int eIndex = client.MinecraftWorld.GetEntityById(myPacket.EntityID);

            if (eIndex != -1) {
                client.MinecraftWorld.Entities[eIndex].amplifier = myPacket.Amplifier;
                client.MinecraftWorld.Entities[eIndex].duration = myPacket.Duration;
                client.MinecraftWorld.Entities[eIndex].status = myPacket.EffectID;
                client.RaiseEntityStatus(myPacket.EntityID);
            }
        }