public NpcDefinition method161() {
		int j = -1;
		if (varbitId != -1) {
			VarBit varBit = VarBit.cache[varbitId];
			int configId = varBit.configId;
			int shift = varBit.anInt649;
			int amountBits = varBit.anInt650;
			int j1 = Client.anIntArray1232[amountBits - shift];
			j = client.configStates[configId] >> shift & j1;
		} else if (actionId != -1) {
			j = client.configStates[actionId];
		}
		if (j < 0 || j >= childIds.length || childIds[j] == -1) {
			return null;
		} else {
			return NpcDefinition.forId(childIds[j]);
		}
	}