/* * Decompiled with CFR 0.150. * * Could not load the following classes: * net.ccbluex.liquidbounce.utils.Colors * net.ccbluex.liquidbounce.utils.render.RenderUtils * net.minecraft.client.renderer.GlStateManager * org.jetbrains.annotations.NotNull * org.jetbrains.annotations.Nullable */ package net.ccbluex.liquidbounce.ui.client.hud.element.elements; import java.awt.Color; import java.io.Closeable; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.List; import kotlin.Metadata; import kotlin.TypeCastException; import kotlin.Unit; import kotlin.collections.CollectionsKt; import kotlin.comparisons.ComparisonsKt; import kotlin.io.CloseableKt; import kotlin.jvm.internal.DefaultConstructorMarker; import kotlin.jvm.internal.Intrinsics; import kotlin.ranges.RangesKt; import kotlin.text.StringsKt; import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.api.IClassProvider; import net.ccbluex.liquidbounce.api.minecraft.client.IMinecraft; import net.ccbluex.liquidbounce.api.minecraft.client.gui.IFontRenderer; import net.ccbluex.liquidbounce.features.module.Module; import net.ccbluex.liquidbounce.ui.client.hud.element.Border; import net.ccbluex.liquidbounce.ui.client.hud.element.Element; import net.ccbluex.liquidbounce.ui.client.hud.element.ElementInfo; import net.ccbluex.liquidbounce.ui.client.hud.element.Side; import net.ccbluex.liquidbounce.ui.client.hud.element.elements.Arraylist$WhenMappings; import net.ccbluex.liquidbounce.ui.font.AWTFontRenderer; import net.ccbluex.liquidbounce.ui.font.Fonts; import net.ccbluex.liquidbounce.utils.Colors; import net.ccbluex.liquidbounce.utils.MinecraftInstance; import net.ccbluex.liquidbounce.utils.render.ColorUtils; import net.ccbluex.liquidbounce.utils.render.RenderUtils; import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowFontShader; import net.ccbluex.liquidbounce.utils.render.shader.shaders.RainbowShader; import net.ccbluex.liquidbounce.value.BoolValue; import net.ccbluex.liquidbounce.value.FloatValue; import net.ccbluex.liquidbounce.value.FontValue; import net.ccbluex.liquidbounce.value.IntegerValue; import net.ccbluex.liquidbounce.value.ListValue; import net.minecraft.client.renderer.GlStateManager; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @ElementInfo(name="Arraylist", single=true) @Metadata(mv={1, 1, 16}, bv={1, 0, 3}, k=1, d1={"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\b\u0007\u0018\u00002\u00020\u0001B-\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0006\u0012\b\b\u0002\u0010\u0007\u001a\u00020\b\u00a2\u0006\u0002\u0010\tJ\n\u00109\u001a\u0004\u0018\u00010:H\u0016J\b\u0010;\u001a\u00020 0.0f) { f2 = n3; f = ((Module)object22).getSlideStep(); f = f / f2 - 1.0f; ((Module)object22).setSlide((f * f * f + 1.0f) * (float)n3); Object object4 = object22; ((Module)object4).setSlideStep(((Module)object4).getSlideStep() - (float)n2 / 4.0f); } ((Module)object22).setSlide(RangesKt.coerceIn(((Module)object22).getSlide(), 0.0f, (float)n3)); ((Module)object22).setSlideStep(RangesKt.coerceIn(((Module)object22).getSlideStep(), 0.0f, (float)n3)); } object22 = new int[]{0}; boolean bl = false; string = (String)this.colorModeValue.get(); String string6 = (String)this.rectColorModeValue.get(); String string7 = (String)this.backgroundColorModeValue.get(); int n4 = new Color(((Number)this.colorRedValue.get()).intValue(), ((Number)this.colorGreenValue.get()).intValue(), ((Number)this.colorBlueValue.get()).intValue(), 1).getRGB(); int n5 = new Color(((Number)this.rectColorRedValue.get()).intValue(), ((Number)this.rectColorGreenValue.get()).intValue(), ((Number)this.rectColorBlueValue.get()).intValue(), ((Number)this.rectColorBlueAlpha.get()).intValue()).getRGB(); float f = ((Number)this.spaceValue.get()).floatValue(); float f3 = ((Number)this.textHeightValue.get()).floatValue(); float f4 = ((Number)this.textYValue.get()).floatValue(); String string8 = (String)this.rectValue.get(); int n6 = new Color(((Number)this.backgroundColorRedValue.get()).intValue(), ((Number)this.backgroundColorGreenValue.get()).intValue(), ((Number)this.backgroundColorBlueValue.get()).intValue(), ((Number)this.backgroundColorAlphaValue.get()).intValue()).getRGB(); new Color(((Number)this.backgroundColorRedValue.get()).intValue(), ((Number)this.backgroundColorRedValue.get()).intValue(), ((Number)this.backgroundColorRedValue.get()).intValue(), 150).getRGB(); boolean bl2 = (Boolean)this.shadow.get(); float f5 = f3 + f; float f6 = ((Number)this.saturationValue.get()).floatValue(); float f7 = ((Number)this.brightnessValue.get()).floatValue(); float f8 = ((Number)this.RianbowbValue.get()).floatValue(); float f9 = ((Number)this.RianbowsValue.get()).floatValue(); switch (Arraylist$WhenMappings.$EnumSwitchMapping$0[this.getSide().getHorizontal().ordinal()]) { case 1: case 2: { int n7; int n8; float f10; String string9; String string10; int n9; Module module; int n10; int n11; Object t; object13 = this.modules; boolean bl3 = false; n = 0; Iterator iterator2 = object13.iterator(); while (iterator2.hasNext()) { Integer n12; t = iterator2.next(); n11 = n++; if (n11 < 0) { CollectionsKt.throwIndexOverflow(); } n10 = n11; module = (Module)t; n9 = n10; String string11 = (Boolean)this.tags.get() == false ? module.getName() : (string10 = (Boolean)this.tagsArrayColor.get() != false ? module.getColorlessTagName() : module.getTagName()); if (((Boolean)this.Breakchange.get()).booleanValue()) { module.setBreakName(true); } else { module.setBreakName(false); } if (((Boolean)this.upperCaseValue.get()).booleanValue()) { String string12 = string10; boolean bl4 = false; String string13 = string12; if (string13 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } Intrinsics.checkExpressionValueIsNotNull(string13.toUpperCase(), "(this as java.lang.String).toUpperCase()"); string10 = string9; } float f11 = -module.getSlide() - (float)2; f10 = (this.getSide().getVertical() == Side.Vertical.DOWN ? -f5 : f5) * (float)(this.getSide().getVertical() == Side.Vertical.DOWN ? n9 + 1 : n9); Color color = Color.getHSBColor(module.getHue(), f6, f7); Intrinsics.checkExpressionValueIsNotNull(color, "Color.getHSBColor(module\u2026, saturation, brightness)"); int n13 = color.getRGB(); Color color2 = ColorUtils.LiquidSlowly(System.nanoTime(), n9 * ((Number)this.RianbowspeedValue.get()).intValue(), f8, f9); Integer n14 = n12 = color2 != null ? Integer.valueOf(color2.getRGB()) : null; if (n14 == null) { Intrinsics.throwNpe(); } int n15 = n14; Color color3 = new Color(n15); int n16 = new Color(((Number)this.Rianbowr.get()).intValue(), color3.getGreen() / 2 + ((Number)this.Rianbowb.get()).intValue(), color3.getGreen() / 2 + ((Number)this.Rianbowb.get()).intValue() + ((Number)this.Rianbowg.get()).intValue()).getRGB(); n8 = StringsKt.equals(string7, "Rainbow", true) ? 1 : 0; float f12 = (float)this.modules.size() * 0.02f; if (module.getState()) { if (module.getHigt() < f10) { Module module2 = module; module2.setHigt(module2.getHigt() + (f12 - Math.min(module.getHigt() * 0.002f, f12 - module.getHigt() * 1.0E-4f)) * (float)n2); module.setHigt(Math.min(f10, module.getHigt())); } else { Module module3 = module; module3.setHigt(module3.getHigt() - (f12 - Math.min(module.getHigt() * 0.002f, f12 - module.getHigt() * 1.0E-4f)) * (float)n2); module.setHigt(Math.max(module.getHigt(), f10)); } } Object object5 = RainbowShader.Companion; float f13 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f14 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f15 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; boolean bl5 = false; RainbowShader rainbowShader = RainbowShader.INSTANCE; if (n8 != 0) { rainbowShader.setStrengthX(f13); rainbowShader.setStrengthY(f14); rainbowShader.setOffset(f15); rainbowShader.startShader(); } object5 = rainbowShader; boolean bl6 = false; Throwable throwable = null; try { Object object6 = (RainbowShader)object5; bl5 = false; RenderUtils.drawRect((float)(f11 - (float)(StringsKt.equals(string8, "right", true) ? 5 : 2)), (float)module.getHigt(), (float)(StringsKt.equals(string8, "right", true) ? -3.0f : 0.0f), (float)(module.getHigt() + f3), (int)(n8 != 0 ? -16777216 : (StringsKt.equals(string7, "Random", true) ? n13 : (StringsKt.equals(string7, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : (StringsKt.equals(string7, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string7, "Bainbow", true) ? n16 : (StringsKt.equals(string7, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string7, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string7, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : n6))))))))); object6 = Unit.INSTANCE; } catch (Throwable throwable2) { throwable = throwable2; throw throwable2; } finally { CloseableKt.closeFinally((Closeable)object5, throwable); } boolean bl7 = StringsKt.equals(string, "Rainbow", true); float f16 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f17 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f18 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; bl5 = false; if (bl7) { RainbowFontShader.INSTANCE.setStrengthX(f16); RainbowFontShader.INSTANCE.setStrengthY(f17); RainbowFontShader.INSTANCE.setOffset(f18); RainbowFontShader.INSTANCE.startShader(); } Closeable closeable = RainbowFontShader.INSTANCE; boolean bl8 = false; Throwable throwable3 = null; try { RainbowFontShader rainbowFontShader = (RainbowFontShader)closeable; boolean bl9 = false; int n17 = iFontRenderer.drawString(string10, f11 - (float)(StringsKt.equals(string8, "right", true) ? 3 : 0), module.getHigt() + f4, bl7 ? 0 : (StringsKt.equals(string, "Random", true) ? n13 : (StringsKt.equals(string, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : (StringsKt.equals(string, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string, "Bainbow", true) ? n16 : (StringsKt.equals(string, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : n4))))))), bl2); } catch (Throwable throwable4) { throwable3 = throwable4; throw throwable4; } finally { CloseableKt.closeFinally(closeable, throwable3); } if (StringsKt.equals(string8, "none", true)) continue; boolean bl10 = StringsKt.equals(string6, "Rainbow", true); Object object7 = RainbowShader.Companion; float f19 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f20 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f21 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; boolean bl11 = false; RainbowShader rainbowShader2 = RainbowShader.INSTANCE; if (bl10) { rainbowShader2.setStrengthX(f19); rainbowShader2.setStrengthY(f20); rainbowShader2.setOffset(f21); rainbowShader2.startShader(); } object7 = rainbowShader2; boolean bl12 = false; Throwable throwable5 = null; try { Object object8 = (RainbowShader)object7; bl11 = false; n7 = bl10 ? 0 : (StringsKt.equals(string6, "Random", true) ? n13 : (StringsKt.equals(string6, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : (StringsKt.equals(string6, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string6, "Bainbow", true) ? n16 : (StringsKt.equals(string6, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string6, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string6, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f10 * (float)8))) : n5))))))); if (StringsKt.equals(string8, "left", true)) { RenderUtils.drawRect((float)(f11 - (float)3), (float)module.getHigt(), (float)(f11 - (float)2), (float)(module.getHigt() + f3), (int)n7); } else if (StringsKt.equals(string8, "right", true)) { RenderUtils.drawRect((float)-3.0f, (float)module.getHigt(), (float)1.0f, (float)(module.getHigt() + f3), (int)n7); } if (StringsKt.equals(string8, "outline", true)) { RenderUtils.drawRect((float)(f11 - 1.0f - ((Number)this.backgroundwidth.get()).floatValue()), (float)module.getHigt(), (float)(f11 - 0.0f - ((Number)this.backgroundwidth.get()).floatValue()), (float)(module.getHigt() + f3 + 0.5f), (int)n7); if (Intrinsics.areEqual(module, (Module)this.modules.get(0)) ^ true) { String string14; String string15 = (Boolean)this.tags.get() == false ? ((Module)this.modules.get(n9 - 1)).getName() : (string14 = (Boolean)this.tagsArrayColor.get() != false ? ((Module)this.modules.get(n9 - 1)).getColorlessTagName() : ((Module)this.modules.get(n9 - 1)).getTagName()); if (((Boolean)this.upperCaseValue.get()).booleanValue()) { String string16; if (string14 != null) { String string17; String string18 = string17; if (string18 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } String string19 = string18.toUpperCase(); string16 = string19; Intrinsics.checkExpressionValueIsNotNull(string19, "(this as java.lang.String).toUpperCase()"); } else { string16 = null; } string14 = string16; } RenderUtils.drawRect((float)(f11 - 1.0f - ((Number)this.backgroundwidth.get()).floatValue() - (float)(iFontRenderer.getStringWidth(string14) - iFontRenderer.getStringWidth(string10))), (float)module.getHigt(), (float)(f11 - 1.0f - ((Number)this.backgroundwidth.get()).floatValue()), (float)(module.getHigt() + 1.0f), (int)n7); } if (Intrinsics.areEqual(module, (Module)this.modules.get(this.modules.size() - 1))) { RenderUtils.drawRect((float)(f11 - 1.0f - ((Number)this.backgroundwidth.get()).floatValue()), (float)(module.getHigt() + f3), (float)0.0f, (float)(module.getHigt() + f3 + 1.0f), (int)n7); } } object8 = Unit.INSTANCE; } catch (Throwable throwable6) { throwable5 = throwable6; throw throwable6; } finally { CloseableKt.closeFinally((Closeable)object7, throwable5); } } break; } case 3: { int n7; int n8; float f10; String string9; String string10; int n9; Module module; int n10; int n11; Object t; object13 = this.modules; boolean bl3 = false; n = 0; Iterator iterator2 = object13.iterator(); while (iterator2.hasNext()) { Integer n18; t = iterator2.next(); n11 = n++; if (n11 < 0) { CollectionsKt.throwIndexOverflow(); } n10 = n11; module = (Module)t; n9 = n10; String string20 = (Boolean)this.tags.get() == false ? module.getName() : (string10 = (Boolean)this.tagsArrayColor.get() != false ? module.getColorlessTagName() : module.getTagName()); if (((Boolean)this.upperCaseValue.get()).booleanValue()) { String string21 = string10; boolean bl13 = false; String string22 = string21; if (string22 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } Intrinsics.checkExpressionValueIsNotNull(string22.toUpperCase(), "(this as java.lang.String).toUpperCase()"); string10 = string9; } int n19 = iFontRenderer.getStringWidth(string10); f10 = -((float)n19 - module.getSlide()) + (float)(StringsKt.equals(string8, "left", true) ? 5 : 2); float f22 = (this.getSide().getVertical() == Side.Vertical.DOWN ? -f5 : f5) * (float)(this.getSide().getVertical() == Side.Vertical.DOWN ? n9 + 1 : n9); Color color = Color.getHSBColor(module.getHue(), f6, f7); Intrinsics.checkExpressionValueIsNotNull(color, "Color.getHSBColor(module\u2026, saturation, brightness)"); int n20 = color.getRGB(); Color color4 = ColorUtils.LiquidSlowly(System.nanoTime(), n9 * ((Number)this.RianbowspeedValue.get()).intValue(), f8, f9); Integer n21 = n18 = color4 != null ? Integer.valueOf(color4.getRGB()) : null; if (n21 == null) { Intrinsics.throwNpe(); } int n22 = n21; Color color5 = new Color(n22); n8 = new Color(((Number)this.Rianbowr.get()).intValue(), color5.getGreen() / 2 + ((Number)this.Rianbowb.get()).intValue(), color5.getGreen() / 2 + ((Number)this.Rianbowb.get()).intValue() + ((Number)this.Rianbowg.get()).intValue()).getRGB(); boolean bl14 = StringsKt.equals(string7, "Rainbow", true); float f23 = (float)this.modules.size() * 0.02f; if (module.getState()) { if (module.getHigt() < f22) { Module module4 = module; module4.setHigt(module4.getHigt() + (f23 - Math.min(module.getHigt() * 0.002f, f23 - module.getHigt() * 1.0E-4f)) * (float)n2); module.setHigt(Math.min(f22, module.getHigt())); } else { Module module5 = module; module5.setHigt(module5.getHigt() - (f23 - Math.min(module.getHigt() * 0.002f, f23 - module.getHigt() * 1.0E-4f)) * (float)n2); module.setHigt(Math.max(module.getHigt(), f22)); } } Object object9 = RainbowShader.Companion; float f24 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f25 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f26 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; boolean bl15 = false; Object object10 = RainbowShader.INSTANCE; if (bl14) { ((RainbowShader)object10).setStrengthX(f24); ((RainbowShader)object10).setStrengthY(f25); ((RainbowShader)object10).setOffset(f26); ((RainbowShader)object10).startShader(); } object9 = (Closeable)object10; boolean bl16 = false; Throwable throwable = null; try { Object object11 = (RainbowShader)object9; bl15 = false; RenderUtils.drawRect((float)0.0f, (float)module.getHigt(), (float)(f10 + (float)n19 + (float)(StringsKt.equals(string8, "right", true) ? 5 : 2)), (float)(module.getHigt() + f3), (int)(bl14 ? 0 : (StringsKt.equals(string7, "Random", true) ? n20 : (StringsKt.equals(string7, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : (StringsKt.equals(string7, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string7, "Bainbow", true) ? n8 : (StringsKt.equals(string7, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string7, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string7, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : n6))))))))); object11 = Unit.INSTANCE; } catch (Throwable throwable7) { throwable = throwable7; throw throwable7; } finally { CloseableKt.closeFinally((Closeable)object9, throwable); } boolean bl17 = StringsKt.equals(string, "Rainbow", true); float f27 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f28 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f29 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; bl15 = false; if (bl17) { RainbowFontShader.INSTANCE.setStrengthX(f27); RainbowFontShader.INSTANCE.setStrengthY(f28); RainbowFontShader.INSTANCE.setOffset(f29); RainbowFontShader.INSTANCE.startShader(); } Closeable closeable = RainbowFontShader.INSTANCE; boolean bl18 = false; Throwable throwable8 = null; try { RainbowFontShader rainbowFontShader = (RainbowFontShader)closeable; boolean bl19 = false; int n23 = iFontRenderer.drawString(string10, f10, module.getHigt() + f4, bl17 ? 0 : (StringsKt.equals(string, "Random", true) ? n20 : (StringsKt.equals(string, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : (StringsKt.equals(string, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string, "Bainbow", true) ? n8 : (StringsKt.equals(string, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : n4))))))), bl2); } catch (Throwable throwable9) { throwable8 = throwable9; throw throwable9; } finally { CloseableKt.closeFinally(closeable, throwable8); } boolean bl20 = StringsKt.equals(string6, "Rainbow", true); Object object12 = RainbowShader.Companion; float f30 = ((Number)this.rainbowX.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowX.get()).floatValue(); float f31 = ((Number)this.rainbowY.get()).floatValue() == 0.0f ? 0.0f : 1.0f / ((Number)this.rainbowY.get()).floatValue(); float f32 = (float)(System.currentTimeMillis() % (long)10000) / 10000.0f; n7 = 0; RainbowShader rainbowShader = RainbowShader.INSTANCE; if (bl20) { rainbowShader.setStrengthX(f30); rainbowShader.setStrengthY(f31); rainbowShader.setOffset(f32); rainbowShader.startShader(); } object12 = rainbowShader; boolean bl21 = false; Throwable throwable10 = null; try { object10 = (RainbowShader)object12; n7 = 0; if (!StringsKt.equals(string8, "none", true)) { int n24 = bl20 ? 0 : (StringsKt.equals(string6, "Random", true) ? n20 : (StringsKt.equals(string6, "OtherRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : (StringsKt.equals(string6, "ALLRainbow", true) ? ColorUtils.ALLColor(400000000L * (long)n9).getRGB() : (StringsKt.equals(string6, "Bainbow", true) ? n8 : (StringsKt.equals(string6, "TwoRainbow", true) ? ColorUtils.TwoRainbow(400000000L * (long)n9, ((Number)this.TwoRainbow.get()).floatValue()).getRGB() : (StringsKt.equals(string6, "OriginalRainbow", true) ? ColorUtils.originalrainbow(400000000L * (long)n9).getRGB() : (StringsKt.equals(string6, "LRainbow", true) ? Colors.getRainbow((int)-2000, (int)((int)(f22 * (float)8))) : n5))))))); if (StringsKt.equals(string8, "left", true)) { RenderUtils.drawRect((float)0.0f, (float)(module.getHigt() - 1.0f), (float)3.0f, (float)(module.getHigt() + f3), (int)n24); } else if (StringsKt.equals(string8, "right", true)) { RenderUtils.drawRect((float)(f10 + (float)n19 + (float)2), (float)module.getHigt(), (float)(f10 + (float)n19 + (float)2 + (float)3), (float)(module.getHigt() + f3), (int)n24); } } object10 = Unit.INSTANCE; } catch (Throwable throwable11) { throwable10 = throwable11; throw throwable11; } finally { CloseableKt.closeFinally((Closeable)object12, throwable10); } } break; } } if (Arraylist.access$getClassProvider$p$s1046033730().isGuiHudDesigner(Arraylist.access$getMc$p$s1046033730().getCurrentScreen())) { this.x2 = Integer.MIN_VALUE; if (this.modules.isEmpty()) { return this.getSide().getHorizontal() == Side.Horizontal.LEFT ? new Border(0.0f, -1.0f, 20.0f, 20.0f) : new Border(0.0f, -1.0f, -20.0f, 20.0f); } for (Object object13 : this.modules) { switch (Arraylist$WhenMappings.$EnumSwitchMapping$1[this.getSide().getHorizontal().ordinal()]) { case 1: case 2: { n = -((int)((Module)object13).getSlide()) - 2; if (this.x2 != Integer.MIN_VALUE && n >= this.x2) break; this.x2 = n; break; } case 3: { n = (int)((Module)object13).getSlide() + 14; if (this.x2 != Integer.MIN_VALUE && n <= this.x2) break; this.x2 = n; } } } this.y2 = (this.getSide().getVertical() == Side.Vertical.DOWN ? -f5 : f5) * (float)this.modules.size(); return new Border(0.0f, 0.0f, (float)this.x2 - 7.0f, this.y2 - (this.getSide().getVertical() == Side.Vertical.DOWN ? 1.0f : 0.0f)); } AWTFontRenderer.Companion.setAssumeNonVolatile(false); GlStateManager.func_179117_G(); return null; } public Arraylist() { this(0.0, 0.0, 0.0f, null, 15, null); } public static final /* synthetic */ IClassProvider access$getClassProvider$p$s1046033730() { return MinecraftInstance.classProvider; } public static final /* synthetic */ FontValue access$getFontValue$p(Arraylist arraylist) { return arraylist.fontValue; } public static final /* synthetic */ IMinecraft access$getMc$p$s1046033730() { return MinecraftInstance.mc; } public static final /* synthetic */ BoolValue access$getUpperCaseValue$p(Arraylist arraylist) { return arraylist.upperCaseValue; } public Arraylist(double d, double d2, float f, Side side, int n, DefaultConstructorMarker defaultConstructorMarker) { n = 15; f = 0.0f; d2 = 0.0; d = 0.0; if ((n & 1) != 0) { d = 1.0; } if ((n & 2) != 0) { d2 = 2.0; } if ((n & 4) != 0) { f = 1.0f; } if ((n & 8) != 0) { side = new Side(Side.Horizontal.RIGHT, Side.Vertical.UP); } this(d, d2, f, side); } public static final /* synthetic */ BoolValue access$getTagsArrayColor$p(Arraylist arraylist) { return arraylist.tagsArrayColor; } public static final /* synthetic */ BoolValue access$getTags$p(Arraylist arraylist) { return arraylist.tags; } public Arraylist(double d, double d2, float f, @NotNull @NotNull Side side) { f = 0.0f; d2 = 0.0; d = 0.0; Intrinsics.checkParameterIsNotNull(side, "side"); super(d, d2, f, side); this.RianbowspeedValue = new IntegerValue("BRainbowSpeed", 90, 1, 90); this.RianbowbValue = new FloatValue("BRainbow-Saturation", 1.0f, 0.0f, 1.0f); this.RianbowsValue = new FloatValue("BRainbow-Brightness", 1.0f, 0.0f, 1.0f); this.Rianbowr = new IntegerValue("BRainbow-R", 0, 0, 255); this.Rianbowb = new IntegerValue("BRainbow-B", 50, 0, 64); this.Rianbowg = new IntegerValue("BRainbow-G", 50, 0, 64); this.rainbowX = new FloatValue("Rainbow-X", -1000.0f, -2000.0f, 2000.0f); this.rainbowY = new FloatValue("Rainbow-Y", -1000.0f, -2000.0f, 2000.0f); this.colorModeValue = new ListValue("Text-Color", new String[]{"Custom", "Random", "Rainbow", "OtherRainbow", "ALLRainbow", "Bainbow", "TwoRainbow", "OriginalRainbow", "LRainbow"}, "Custom"); this.colorRedValue = new IntegerValue("Text-R", 0, 0, 255); this.colorGreenValue = new IntegerValue("Text-G", 111, 0, 255); this.colorBlueValue = new IntegerValue("Text-B", 255, 0, 255); this.TwoRainbow = new FloatValue("TwoRainbow", 1.0f, 0.0f, 1.0f); this.rectColorModeValue = new ListValue("Rect-Color", new String[]{"Custom", "Random", "Rainbow", "OtherRainbow", "ALLRainbow", "Bainbow", "TwoRainbow", "OriginalRainbow", "LRainbow"}, "Rainbow"); this.rectColorRedValue = new IntegerValue("Rect-R", 255, 0, 255); this.rectColorGreenValue = new IntegerValue("Rect-G", 255, 0, 255); this.rectColorBlueValue = new IntegerValue("Rect-B", 255, 0, 255); this.rectColorBlueAlpha = new IntegerValue("Rect-Alpha", 255, 0, 255); this.saturationValue = new FloatValue("Random-Saturation", 0.9f, 0.0f, 1.0f); this.brightnessValue = new FloatValue("Random-Brightness", 1.0f, 0.0f, 1.0f); this.tags = new BoolValue("Tags", true); this.shadow = new BoolValue("ShadowText", true); this.backgroundColorModeValue = new ListValue("Background-Color", new String[]{"Custom", "Random", "Rainbow", "OtherRainbow", "ALLRainbow", "Bainbow", "TwoRainbow", "OriginalRainbow", "LRainbow"}, "Custom"); this.backgroundColorRedValue = new IntegerValue("Background-R", 0, 0, 255); this.backgroundColorGreenValue = new IntegerValue("Background-G", 0, 0, 255); this.backgroundColorBlueValue = new IntegerValue("Background-B", 0, 0, 255); this.backgroundColorAlphaValue = new IntegerValue("Background-Alpha", 0, 0, 255); this.backgroundwidth = new IntegerValue("BackGroundWidth", 2, 0, 14); this.rectValue = new ListValue("Rect", new String[]{"None", "Left", "Right", "Outline"}, "None"); this.upperCaseValue = new BoolValue("UpperCase", false); this.spaceValue = new FloatValue("Space", 0.0f, 0.0f, 5.0f); this.textHeightValue = new FloatValue("TextHeight", 11.0f, 1.0f, 20.0f); this.textYValue = new FloatValue("TextY", 1.0f, 0.0f, 20.0f); this.tagsArrayColor = new BoolValue("TagsArrayColor", false); this.Breakchange = new BoolValue("NameBreak", false); IFontRenderer iFontRenderer = Fonts.font40; Intrinsics.checkExpressionValueIsNotNull(iFontRenderer, "Fonts.font40"); this.fontValue = new FontValue("Font", iFontRenderer); this.modules = CollectionsKt.emptyList(); } @Override public void updateElement() { Iterable iterable = ((LiquidBounce)null).getModuleManager().getModules(); Arraylist arraylist = this; Iterable iterable2 = iterable; Collection collection = new ArrayList(); boolean bl = false; for (Object t : iterable2) { Module module = (Module)t; boolean bl2 = module.getArray() && module.getSlide() > 0.0f; } List list = (List)collection; iterable = list; iterable2 = iterable; boolean bl3 = false; Comparator comparator = new Comparator(this){ final /* synthetic */ Arraylist this$0; public final int compare(Object object, Object object2) { String string; String string2; String string3; IFontRenderer iFontRenderer; String string4; Module module = (Module)object; IFontRenderer iFontRenderer2 = (IFontRenderer)Arraylist.access$getFontValue$p(this.this$0).get(); if (((Boolean)Arraylist.access$getUpperCaseValue$p(this.this$0).get()).booleanValue()) { string4 = (Boolean)Arraylist.access$getTags$p(this.this$0).get() == false ? module.getName() : ((Boolean)Arraylist.access$getTagsArrayColor$p(this.this$0).get() != false ? module.getColorlessTagName() : module.getTagName()); iFontRenderer = iFontRenderer2; String string5 = string4; if (string5 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } String string6 = string5.toUpperCase(); Intrinsics.checkExpressionValueIsNotNull(string6, "(this as java.lang.String).toUpperCase()"); string3 = string6; iFontRenderer2 = iFontRenderer; string2 = string3; } else { string2 = (Boolean)Arraylist.access$getTags$p(this.this$0).get() == false ? module.getName() : ((Boolean)Arraylist.access$getTagsArrayColor$p(this.this$0).get() != false ? module.getColorlessTagName() : module.getTagName()); } module = (Module)object2; Comparable comparable = Integer.valueOf(-iFontRenderer2.getStringWidth(string2)); IFontRenderer iFontRenderer3 = (IFontRenderer)Arraylist.access$getFontValue$p(this.this$0).get(); if (((Boolean)Arraylist.access$getUpperCaseValue$p(this.this$0).get()).booleanValue()) { string4 = (Boolean)Arraylist.access$getTags$p(this.this$0).get() == false ? module.getName() : ((Boolean)Arraylist.access$getTagsArrayColor$p(this.this$0).get() != false ? module.getColorlessTagName() : module.getTagName()); iFontRenderer = iFontRenderer3; String string7 = string4; if (string7 == null) { throw new TypeCastException("null cannot be cast to non-null type java.lang.String"); } String string8 = string7.toUpperCase(); Intrinsics.checkExpressionValueIsNotNull(string8, "(this as java.lang.String).toUpperCase()"); string3 = string8; iFontRenderer3 = iFontRenderer; string = string3; } else { string = (Boolean)Arraylist.access$getTags$p(this.this$0).get() == false ? module.getName() : ((Boolean)Arraylist.access$getTagsArrayColor$p(this.this$0).get() != false ? module.getColorlessTagName() : module.getTagName()); } Integer n = -iFontRenderer3.getStringWidth(string); return ComparisonsKt.compareValues(comparable, n); } { this.this$0 = arraylist; } static { } }; arraylist.modules = list = CollectionsKt.sortedWith(iterable2, comparator); } }