package dev.virel.obf;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.function.Consumer;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.class_1297;
import net.minecraft.class_1309;
import net.minecraft.class_1661;
import net.minecraft.class_276;
import net.minecraft.class_304;
import net.minecraft.class_310;
import net.minecraft.class_3675;
import net.minecraft.class_636;
import net.minecraft.class_744;
import net.minecraft.class_746;
import net.minecraft.class_9331;
import net.minecraft.class_9334;
@Environment(EnvType.CLIENT)
public final class 1IlI {
// $FF: synthetic field
private static boolean Illlii;
// $FF: synthetic field
private static int liiliI;
// $FF: synthetic field
public static final long i1I1lI = 0L;
// $FF: synthetic field
private static boolean 1li1I1;
// $FF: synthetic field
private static int iiiIli;
// $FF: synthetic field
private static final Field IlIIll;
// $FF: synthetic field
private static int II111i;
// $FF: synthetic field
private static final Field iliI1;
// $FF: synthetic field
private static int i1iilI;
// $FF: synthetic field
private static final Method 1IilI1;
// $FF: synthetic field
private static Illi1 IilIl;
// $FF: synthetic field
private static final Field iIl11I;
// $FF: synthetic field
private static final Field llIIi;
// $FF: synthetic field
private static final Method IIiiIl;
// $FF: synthetic field
private static int iI1Ii;
// $FF: synthetic field
private static final Method IIl1l;
// $FF: synthetic field
private static final Method Ill1ii;
// $FF: synthetic field
private static final Field iIliil;
// $FF: synthetic field
private static final int IlIiI = 20;
// $FF: synthetic field
private static int I1Ii1l;
// $FF: synthetic field
private static final Field 1iI1i1;
// $FF: synthetic field
private static long I1Iiii;
// $FF: synthetic field
private static final boolean[] Ili111;
// $FF: synthetic field
private static final class_9331<?> iiI1i;
// $FF: synthetic field
private static final ConcurrentLinkedQueue<l1ll> iiIIli;
// $FF: synthetic field
private static final Method 1ilI;
// $FF: synthetic field
private static boolean liI1;
// $FF: synthetic field
private static String[] 1iil1 = new String[71];
// $FF: synthetic field
private static boolean IIlil1;
// $FF: synthetic field
private static long liil11;
// $FF: synthetic field
private static int ii1Il1;
// $FF: synthetic field
private static int IlIlII;
// $FF: synthetic field
private static final Method li1ii1;
// $FF: synthetic field
private static final Method lIlI1I;
// $FF: synthetic field
private static Object i11lii;
// $FF: synthetic field
private static long iI1l1i;
// $FF: synthetic field
private static boolean iIIll1;
// $FF: synthetic field
private static int l1IiI;
// $FF: synthetic field
private static boolean 1lili1;
// $FF: synthetic field
private static final Field I1lIII;
// $FF: synthetic field
private static final Method i1l1l1;
// $FF: synthetic field
private static class_746 liil1i;
// $FF: synthetic field
private static boolean iII1Ii;
// $FF: synthetic field
private static final Field ll1l1I;
// $FF: synthetic field
private static boolean Iil1i1;
// $FF: synthetic field
private static final lI11 1lIil;
// $FF: synthetic field
private static int 1ilIIl;
// $FF: synthetic field
private static int 1li1l;
// $FF: synthetic field
private static long Iii11l;
// $FF: synthetic field
private static final Method IlIl1;
// $FF: synthetic field
private static final boolean[] I1iII1;
// $FF: synthetic field
private static boolean iIi1I;
// $FF: synthetic field
private static int li1Iii;
// $FF: synthetic field
private static int IiI1Ii;
// $FF: synthetic field
private static int ili111;
// $FF: synthetic field
private static final Field liIlII;
// $FF: synthetic field
private static final Method l11l1i;
// $FF: synthetic method
private _IlI/* $FF was: 1IlI*/() {
}
static {
static lIII();
Illlii = false;
iiIIli = new ConcurrentLinkedQueue();
iIIll1 = false;
ii1Il1 = -1;
iII1Ii = false;
iiiIli = -1;
1li1l = 0;
1lIil = new lI11();
ili111 = -1;
liiliI = Integer.MIN_VALUE;
I1Iiii = Long.MIN_VALUE;
IlIlII = 0;
iI1Ii = 0;
I1Ii1l = 0;
II111i = 0;
l1IiI = Integer.MIN_VALUE;
li1Iii = Integer.MIN_VALUE;
liI1 = true;
1ilIIl = -1;
IiI1Ii = Integer.MIN_VALUE;
Field var0 = null;
try {
var0 = class_304.class.getDeclaredField(iIl.interface l11I(1iil1[6]));
var0.setAccessible(true);
} catch (ReflectiveOperationException var38) {
}
iIl11I = var0;
Field var1 = null;
Method var2 = null;
try {
var2 = class_1661.class.getMethod(iIl.interface l11I(1iil1[11]));
} catch (NoSuchMethodException var37) {
}
try {
var1 = class_1661.class.getField(iIl.interface l11I(1iil1[15]));
} catch (NoSuchFieldException var36) {
try {
var1 = class_1661.class.getDeclaredField(iIl.interface l11I(1iil1[15]));
var1.setAccessible(true);
} catch (NoSuchFieldException var35) {
}
}
I1lIII = var1;
lIlI1I = var2;
Field var3 = null;
Field var4 = null;
Field var5 = null;
try {
var3 = class_744.class.getField(iIl.interface l11I(1iil1[8]));
var4 = class_744.class.getField(iIl.interface l11I(1iil1[17]));
} catch (NoSuchFieldException var34) {
try {
var5 = class_744.class.getDeclaredField(iIl.interface l11I(1iil1[14]));
var5.setAccessible(true);
} catch (NoSuchFieldException var33) {
try {
var5 = class_744.class.getDeclaredField(iIl.interface l11I(1iil1[14]));
var5.setAccessible(true);
} catch (NoSuchFieldException var32) {
try {
var5 = class_744.class.getDeclaredField(iIl.interface l11I(1iil1[18]));
var5.setAccessible(true);
} catch (NoSuchFieldException var31) {
}
}
}
}
1iI1i1 = var3;
iliI1 = var4;
IlIIll = var5;
class_9331 var6 = null;
try {
Field var7 = class_9334.class.getField(iIl.interface l11I(1iil1[12]));
var6 = (class_9331)var7.get((Object)null);
} catch (ReflectiveOperationException var30) {
}
iiI1i = var6;
Method var39 = null;
try {
var39 = class_636.class.getDeclaredMethod(iIl.interface l11I(1iil1[7]));
var39.setAccessible(true);
} catch (ReflectiveOperationException var29) {
}
1IilI1 = var39;
Method var8 = null;
Method var9 = null;
try {
var8 = class_304.class.getMethod(iIl.interface l11I(1iil1[10]), class_3675.class_306.class);
} catch (ReflectiveOperationException var28) {
}
try {
var9 = class_304.class.getMethod(iIl.interface l11I(1iil1[22]), class_3675.class_306.class, Boolean.TYPE);
} catch (ReflectiveOperationException var27) {
}
i1l1l1 = var8;
1ilI = var9;
Method var10 = null;
Method var11 = null;
try {
var10 = class_310.class.getMethod(iIl.interface l11I(1iil1[23]), class_1297.class);
} catch (ReflectiveOperationException var26) {
}
try {
var11 = class_310.class.getMethod(iIl.interface l11I(1iil1[13]));
} catch (ReflectiveOperationException var25) {
}
Ill1ii = var10;
l11l1i = var11;
iIliil = final IIiI(class_1309.class, iIl.interface l11I(1iil1[24]));
llIIi = final IIiI(class_1309.class, iIl.interface l11I(1iil1[20]));
liIlII = final IIiI(class_1309.class, iIl.interface l11I(1iil1[19]));
ll1l1I = final IIiI(class_1309.class, iIl.interface l11I(1iil1[16]));
Method var12 = null;
Method var13 = null;
Method var14 = null;
try {
Class var15 = Class.forName(iIl.interface l11I(1iil1[21]));
try {
var12 = var15.getMethod(iIl.interface l11I(1iil1[9]), class_276.class);
} catch (ReflectiveOperationException var23) {
}
try {
var13 = var15.getMethod(iIl.interface l11I(1iil1[9]), class_276.class, Consumer.class);
} catch (ReflectiveOperationException var22) {
}
try {
var14 = var15.getMethod(iIl.interface l11I(1iil1[9]), class_276.class, Integer.TYPE, Consumer.class);
} catch (ReflectiveOperationException var21) {
}
} catch (ClassNotFoundException var24) {
}
IlIl1 = var12;
li1ii1 = var13;
IIl1l = var14;
Method var40 = null;
for(Method var19 : class_3675.class.getMethods()) {
Class[] var20 = var19.getParameterTypes();
if (var19.getName().equals(iIl.interface l11I(1iil1[25])) && var20.length == 2 && var20[1] == Integer.TYPE && (var20[0] == Long.TYPE || !var20[0].isPrimitive())) {
var40 = var19;
break;
}
}
IIiiIl = var40;
Ili111 = new boolean[16];
I1iII1 = new boolean[16];
}
}