package dev.virel.obf;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_1657;
import net.minecraft.class_310;
import net.minecraft.class_640;
import net.minecraft.class_745;
import org.jetbrains.annotations.Nullable;

@Environment(EnvType.CLIENT)
public final class Iil1l extends class_745 {
   // $FF: synthetic field
   private static final class_310 Ii11ii = class_310.method_1551();
   // $FF: synthetic field
   private final int IliIi1;
   private @Nullable class_640 iIilIl;

   // $FF: synthetic method
   public Iil1l(class_1657 var1, String var2, float var3, boolean var4, boolean var5) {
      super(Ii11ii.field_1687, createProfile(var1, var2));
      if (Ii11ii.field_1687 != null && var1 != null) {
         this.method_5719(var1);
         this.field_6014 = var1.field_6014;
         this.field_6036 = var1.field_6036;
         this.field_5969 = var1.field_5969;
         this.field_6241 = var1.field_6241;
         this.field_6283 = var1.field_6283;
         this.method_18799(var1.method_18798());
         this.method_24830(var1.method_24828());
         this.method_5660(var1.method_5715());
         this.method_5728(var1.method_5624());
         this.method_5796(var1.method_5681());
         this.method_5855(var1.method_5669());
         this.method_20803(var1.method_20802());
         this.method_6127().method_26846(var1.method_6127());
         this.method_18380(var1.method_18376());
         this.field_5960 = false;
         if (var3 <= 20.0F) {
            this.method_6033(Math.max(1.0F, var3));
         } else {
            this.method_6033(20.0F);
            this.method_6073(var3 - 20.0F);
         }

         if (var5) {
            this.method_5648(true);
         }

         if (var4) {
            this.method_31548().method_7377(var1.method_31548());
         }

         this.iIilIl = Ii11ii.method_1562() == null ? null : Ii11ii.method_1562().method_2871(var1.method_5667());
         this.IliIi1 = this.iIilIl == null ? 0 : this.iIilIl.method_2959();
      } else {
         this.IliIi1 = 0;
      }
   }
}
