import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;

@ObfuscatedName("gt")
@Implements("ServerPacket")
public class ServerPacket {
	@ObfuscatedName("h")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2179;
	@ObfuscatedName("v")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2202;
	@ObfuscatedName("x")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2141;
	@ObfuscatedName("w")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2142;
	@ObfuscatedName("t")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2143;
	@ObfuscatedName("j")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2144;
	@ObfuscatedName("n")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2201;
	@ObfuscatedName("p")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2146;
	@ObfuscatedName("l")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2182;
	@ObfuscatedName("z")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2148;
	@ObfuscatedName("u")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2200;
	@ObfuscatedName("e")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2150;
	@ObfuscatedName("m")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2190;
	@ObfuscatedName("c")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2152;
	@ObfuscatedName("i")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2139;
	@ObfuscatedName("f")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2188;
	@ObfuscatedName("a")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2155;
	@ObfuscatedName("b")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2156;
	@ObfuscatedName("y")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2163;
	@ObfuscatedName("r")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2158;
	@ObfuscatedName("q")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2159;
	@ObfuscatedName("g")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2160;
	@ObfuscatedName("s")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2161;
	@ObfuscatedName("o")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2162;
	@ObfuscatedName("k")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2218;
	@ObfuscatedName("d")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2164;
	@ObfuscatedName("an")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2165;
	@ObfuscatedName("aj")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2192;
	@ObfuscatedName("ax")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2167;
	@ObfuscatedName("ag")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2212;
	@ObfuscatedName("au")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2208;
	@ObfuscatedName("as")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2170;
	@ObfuscatedName("ae")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2171;
	@ObfuscatedName("ac")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2172;
	@ObfuscatedName("ak")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2173;
	@ObfuscatedName("av")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2174;
	@ObfuscatedName("aq")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2175;
	@ObfuscatedName("ah")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2176;
	@ObfuscatedName("am")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2140;
	@ObfuscatedName("aa")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2178;
	@ObfuscatedName("ao")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2151;
	@ObfuscatedName("ab")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2180;
	@ObfuscatedName("aw")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2181;
	@ObfuscatedName("ap")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2157;
	@ObfuscatedName("ad")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2166;
	@ObfuscatedName("ai")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2184;
	@ObfuscatedName("al")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2197;
	@ObfuscatedName("ay")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2186;
	@ObfuscatedName("af")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2149;
	@ObfuscatedName("ar")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2214;
	@ObfuscatedName("az")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2189;
	@ObfuscatedName("at")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2209;
	@ObfuscatedName("bh")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2191;
	@ObfuscatedName("by")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2145;
	@ObfuscatedName("bs")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2183;
	@ObfuscatedName("br")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2194;
	@ObfuscatedName("bl")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2195;
	@ObfuscatedName("bx")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2196;
	@ObfuscatedName("bf")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2215;
	@ObfuscatedName("bz")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2198;
	@ObfuscatedName("bm")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2177;
	@ObfuscatedName("bn")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2207;
	@ObfuscatedName("bd")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2154;
	@ObfuscatedName("bc")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2153;
	@ObfuscatedName("bi")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2203;
	@ObfuscatedName("bk")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2204;
	@ObfuscatedName("bw")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2205;
	@ObfuscatedName("bo")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2169;
	@ObfuscatedName("bj")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2206;
	@ObfuscatedName("bu")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2185;
	@ObfuscatedName("bt")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2187;
	@ObfuscatedName("bb")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2210;
	@ObfuscatedName("bv")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2211;
	@ObfuscatedName("bg")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2193;
	@ObfuscatedName("ba")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2213;
	@ObfuscatedName("bq")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2168;
	@ObfuscatedName("be")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2199;
	@ObfuscatedName("bp")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2216;
	@ObfuscatedName("cx")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2217;
	@ObfuscatedName("ci")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2147;
	@ObfuscatedName("cj")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2219;
	@ObfuscatedName("ca")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2220;
	@ObfuscatedName("cd")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2221;
	@ObfuscatedName("cm")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2222;
	@ObfuscatedName("cz")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2223;
	@ObfuscatedName("cc")
	@ObfuscatedSignature(
		descriptor = "Lgt;"
	)
	public static final ServerPacket field2224;
	@ObfuscatedName("ce")
	@ObfuscatedGetter(
		intValue = -61586593
	)
	@Export("id")
	public final int id;
	@ObfuscatedName("cb")
	@ObfuscatedGetter(
		intValue = 875851551
	)
	@Export("length")
	public final int length;

	static {
		field2179 = new ServerPacket(0, 28); // L: 5
		field2202 = new ServerPacket(1, -2); // L: 6
		field2141 = new ServerPacket(2, -1); // L: 7
		field2142 = new ServerPacket(3, -2); // L: 8
		field2143 = new ServerPacket(4, -2);
		field2144 = new ServerPacket(5, 6); // L: 10
		field2201 = new ServerPacket(6, 0); // L: 11
		field2146 = new ServerPacket(7, 4); // L: 12
		field2182 = new ServerPacket(8, 6); // L: 13
		field2148 = new ServerPacket(9, 0); // L: 14
		field2200 = new ServerPacket(10, 2); // L: 15
		field2150 = new ServerPacket(11, 4); // L: 16
		field2190 = new ServerPacket(12, 6); // L: 17
		field2152 = new ServerPacket(13, 5); // L: 18
		field2139 = new ServerPacket(14, -1); // L: 19
		field2188 = new ServerPacket(15, 5); // L: 20
		field2155 = new ServerPacket(16, 8); // L: 21
		field2156 = new ServerPacket(17, 15); // L: 22
		field2163 = new ServerPacket(18, 6); // L: 23
		field2158 = new ServerPacket(19, 2); // L: 24
		field2159 = new ServerPacket(20, -2); // L: 25
		field2160 = new ServerPacket(21, 4); // L: 26
		field2161 = new ServerPacket(22, 8); // L: 27
		field2162 = new ServerPacket(23, -2); // L: 28
		field2218 = new ServerPacket(24, 8); // L: 29
		field2164 = new ServerPacket(25, 14); // L: 30
		field2165 = new ServerPacket(26, 4); // L: 31
		field2192 = new ServerPacket(27, -1);
		field2167 = new ServerPacket(28, 0);
		field2212 = new ServerPacket(29, 7);
		field2208 = new ServerPacket(30, 2); // L: 35
		field2170 = new ServerPacket(31, 6); // L: 36
		field2171 = new ServerPacket(32, 4); // L: 37
		field2172 = new ServerPacket(33, 2); // L: 38
		field2173 = new ServerPacket(34, 0); // L: 39
		field2174 = new ServerPacket(35, 20); // L: 40
		field2175 = new ServerPacket(36, -2); // L: 41
		field2176 = new ServerPacket(37, -2); // L: 42
		field2140 = new ServerPacket(38, -2); // L: 43
		field2178 = new ServerPacket(39, 2); // L: 44
		field2151 = new ServerPacket(40, 6); // L: 45
		field2180 = new ServerPacket(41, 1); // L: 46
		field2181 = new ServerPacket(42, 5); // L: 47
		field2157 = new ServerPacket(43, -2); // L: 48
		field2166 = new ServerPacket(44, 1); // L: 49
		field2184 = new ServerPacket(45, -2); // L: 50
		field2197 = new ServerPacket(46, 10); // L: 51
		field2186 = new ServerPacket(47, 2); // L: 52
		field2149 = new ServerPacket(48, 5); // L: 53
		field2214 = new ServerPacket(49, 0); // L: 54
		field2189 = new ServerPacket(50, -2); // L: 55
		field2209 = new ServerPacket(51, -2); // L: 56
		field2191 = new ServerPacket(52, 6); // L: 57
		field2145 = new ServerPacket(53, 1); // L: 58
		field2183 = new ServerPacket(54, -1); // L: 59
		field2194 = new ServerPacket(55, -2); // L: 60
		field2195 = new ServerPacket(56, -2); // L: 61
		field2196 = new ServerPacket(57, 5); // L: 62
		field2215 = new ServerPacket(58, 2); // L: 63
		field2198 = new ServerPacket(59, 3); // L: 64
		field2177 = new ServerPacket(60, 4); // L: 65
		field2207 = new ServerPacket(61, 1); // L: 66
		field2154 = new ServerPacket(62, 3); // L: 67
		field2153 = new ServerPacket(63, 6); // L: 68
		field2203 = new ServerPacket(64, -2); // L: 69
		field2204 = new ServerPacket(65, -2); // L: 70
		field2205 = new ServerPacket(66, 2); // L: 71
		field2169 = new ServerPacket(67, 4); // L: 72
		field2206 = new ServerPacket(68, -2); // L: 73
		field2185 = new ServerPacket(69, 7); // L: 74
		field2187 = new ServerPacket(70, 0); // L: 75
		field2210 = new ServerPacket(71, -1); // L: 76
		field2211 = new ServerPacket(72, 10); // L: 77
		field2193 = new ServerPacket(73, 6); // L: 78
		field2213 = new ServerPacket(74, 2); // L: 79
		field2168 = new ServerPacket(75, -2); // L: 80
		field2199 = new ServerPacket(76, 6); // L: 81
		field2216 = new ServerPacket(77, -2); // L: 82
		field2217 = new ServerPacket(78, -1); // L: 83
		field2147 = new ServerPacket(79, 12); // L: 84
		field2219 = new ServerPacket(80, 1); // L: 85
		field2220 = new ServerPacket(81, 1); // L: 86
		field2221 = new ServerPacket(82, 2); // L: 87
		field2222 = new ServerPacket(83, 8); // L: 88
		field2223 = new ServerPacket(84, 6); // L: 89
		field2224 = new ServerPacket(85, 0); // L: 90
	}

	ServerPacket(int var1, int var2) {
		this.id = var1; // L: 99
		this.length = var2; // L: 100
	} // L: 101

	@ObfuscatedName("h")
	@ObfuscatedSignature(
		descriptor = "(II)I",
		garbageValue = "-1751724590"
	)
	@Export("Widget_unpackTargetMask")
	public static int Widget_unpackTargetMask(int var0) {
		return var0 >> 11 & 63; // L: 9
	}

	@ObfuscatedName("h")
	@ObfuscatedSignature(
		descriptor = "(Lib;Lib;I)V",
		garbageValue = "-1425205882"
	)
	public static void method3669(AbstractArchive var0, AbstractArchive var1) {
		class225.HealthBarDefinition_archive = var0; // L: 32
		HealthBarDefinition.HitSplatDefinition_spritesArchive = var1; // L: 33
	} // L: 34

	@ObfuscatedName("z")
	@ObfuscatedSignature(
		descriptor = "(Ljava/lang/String;I)Ljava/lang/String;",
		garbageValue = "1710358127"
	)
	public static String method3663(String var0) {
		int var1 = var0.length(); // L: 159
		char[] var2 = new char[var1]; // L: 160
		byte var3 = 2; // L: 161

		for (int var4 = 0; var4 < var1; ++var4) { // L: 162
			char var5 = var0.charAt(var4); // L: 163
			if (var3 == 0) { // L: 164
				var5 = Character.toLowerCase(var5);
			} else if (var3 == 2 || Character.isUpperCase(var5)) { // L: 165
				char var6;
				if (var5 != 181 && var5 != 402) { // L: 168
					var6 = Character.toTitleCase(var5); // L: 172
				} else {
					var6 = var5; // L: 169
				}

				var5 = var6; // L: 174
			}

			if (Character.isLetter(var5)) { // L: 176
				var3 = 0;
			} else if (var5 != '.' && var5 != '?' && var5 != '!') { // L: 177
				if (Character.isSpaceChar(var5)) { // L: 178
					if (var3 != 2) { // L: 179
						var3 = 1;
					}
				} else {
					var3 = 1; // L: 181
				}
			} else {
				var3 = 2;
			}

			var2[var4] = var5; // L: 182
		}

		return new String(var2); // L: 184
	}

	@ObfuscatedName("u")
	@ObfuscatedSignature(
		descriptor = "(I)V",
		garbageValue = "-1225574522"
	)
	static final void method3668() {
		Object var10000 = null; // L: 126
		String var0 = "You can't add yourself to your own friend list";
		class234.addGameMessage(30, "", var0); // L: 128
	} // L: 130

	@ObfuscatedName("kv")
	@ObfuscatedSignature(
		descriptor = "(B)V",
		garbageValue = "36"
	)
	static final void method3664() {
		PacketBufferNode var0 = ItemContainer.getPacketBufferNode(ClientPacket.field2306, Client.packetWriter.isaacCipher); // L: 10786
		Client.packetWriter.addNode(var0); // L: 10787

		for (InterfaceParent var1 = (InterfaceParent)Client.interfaceParents.first(); var1 != null; var1 = (InterfaceParent)Client.interfaceParents.next()) { // L: 10788
			if (var1.type == 0 || var1.type == 3) { // L: 10789
				MouseRecorder.closeInterface(var1, true);
			}
		}

		if (Client.meslayerContinueWidget != null) { // L: 10791
			CollisionMap.invalidateWidget(Client.meslayerContinueWidget); // L: 10792
			Client.meslayerContinueWidget = null; // L: 10793
		}

	} // L: 10795
}
